NIfTI-Image-Converter icon indicating copy to clipboard operation
NIfTI-Image-Converter copied to clipboard

convert nii.gz to png black image.png

Open hannamraha opened this issue 3 years ago • 5 comments

thank you for the code When I convert the images, I get a black image.png. I have no idea why i am getting a black picture. Can anyone help me? @monjoybme & @alexlaurence Many Thanks

hannamraha avatar Dec 22 '21 10:12 hannamraha

@hannamraha There could be several reasons for this. Please inspect the image to see whether it has any other pixel values. Radiological images have a wide range of grayscale pixels. As a result, there's a possibility that your images' pixel values are very close to ZERO or Black pixel intensity. There might be windowing-related issues as well. If you share an image, I can inspect that.

monjoybme avatar Dec 22 '21 13:12 monjoybme

Thank you for your reply. Unfortunately I cannot share a picture. The images are MRI and CT. Data Set Dimensions (voxels) : X:256; Y:256; Z:1.

hannamraha avatar Dec 22 '21 13:12 hannamraha

@hannamraha In that case, you have to check if your image contains any pixel values other than ZERO or not. You may try to convert it into binary.

monjoybme avatar Dec 22 '21 14:12 monjoybme

@monjoybme thank you for your message. Ok.

hannamraha avatar Dec 23 '21 13:12 hannamraha

@hannamraha Please close the issue if you are satisfied with the solution.

monjoybme avatar Nov 07 '22 16:11 monjoybme