Commit 83f7abf3 authored by Laurent Claustre's avatar Laurent Claustre
Browse files

Merge branch 'fix-saving-concat-frames' into 'master'

CtSaving_Edf: fix saving of (3D) image stack

See merge request !193
parents 926911bf d4d3751d
Pipeline #46192 passed with stages
in 23 minutes and 8 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