+ case 'v' :
+
+ if ( f1->GetHeader()->GetBitsAllocated() == 8)
+ {
+ std::cout << "videoinv for 8 bits" << std::endl;
+ for (int i=0; i<dataSize; i++)
+ {
+ ((uint8_t*)imageData)[i] += 127;
+ }
+ }
+ else
+ {
+ std::cout << "videoinv for 16 bits" << std::endl;
+ for (int i=0; i<dataSize/2; i++)
+ {
+ ((uint16_t*)imageData)[i] += 60000; //32767;
+ }
+ }
+ sprintf(zozo, "%s.VDCM", toto.c_str());
+ printf ("WriteDCM Explicit VR + VideoInv\n");
+ f1->WriteDcmExplVR(zozo);
+ break;
+