I want to display a DICOM file with a photometric interpretation of MONOCHROME2.
some characteristics of the image -
Rows: 1024 Columns: 1024 No of Frames: 622 Bits Allocated: 16 Bits Stored: 10 High Bit: 9 Pixel Representation: 0 Sample per pixel: 1
I am using gdcmRegionReader to retrieve a byte array of single frames as follows.
gdcm.ImageRegionReader _regionReader = new gdcm.ImageRegionReader(); _regionReader.SetRegion(_boxRegion); // _boxRegion is some region _regionReader.ReadIntoBuffer(Result, (uint)Result.Length); Marshal.Copy(Result.ToArray(), 0, _imageData.GetScalarPointer(), Result.ToArray().Length); _viewer.SetInput(_imageData); // _viewer = vtkImageViewer
But when I show this file, it looks like this: 
but the original image looks like this: 
So can someone help me on how to download and display DOMOM MONOCHROME2 images.
source share