- for(int i=0 ; i< 3 ; i++){
- float *pb = (float *)buffer;
- pb+=i;
- float *ptb = tempBuffer;
- const float *pbe = (float *)buffer + GetImageSizeInComponents() + i;
- while(pb != pbe){
- *ptb++ = (*pb)/GetSpacing(i);
- pb+=3;
- }
- InternalByteSwapperType::SwapRangeFromSystemToLittleEndian(tempBuffer,GetImageSizeInPixels());
- file.write((char*)tempBuffer, GetImageSizeInBytes()/3 );
+ for(int i=0 ; i< 3 ; i++) {
+ float *pb = (float *)buffer;
+ pb+=i;
+ float *ptb = tempBuffer;
+ const float *pbe = (float *)buffer + GetImageSizeInComponents() + i;
+ while(pb != pbe) {
+ *ptb++ = (*pb)/GetSpacing(i);
+ pb+=3;
+ }
+ InternalByteSwapperType::SwapRangeFromSystemToLittleEndian(tempBuffer,GetImageSizeInPixels());
+ file.write((char*)tempBuffer, GetImageSizeInBytes()/3 );