NIfTI-Image-Converter
NIfTI-Image-Converter copied to clipboard
convert nii.gz to png black image.png
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 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.
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 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 thank you for your message. Ok.
@hannamraha Please close the issue if you are satisfied with the solution.