Commit d4d3751d authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by bliss administrator
Browse files

CtSaving_Edf: fix saving of (3D) image stack

parent 926911bf
Pipeline #43680 passed with stages
in 32 minutes and 13 seconds
......@@ -204,7 +204,10 @@ namespace lima {
sout << "Dim_2 = "; mmap_info.height_offset = sout.tellp();
snprintf(aBuffer,sizeof(aBuffer),"%*s ;\n",nbCharReserved,"");
sout << aData.dimensions[1] << aBuffer;
int rows = aData.dimensions[1];
if (aData.dimensions.size() == 3)
rows *= aData.dimensions[2];
sout << rows << aBuffer;
sout << "Image = " << image_nb << " ;\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment