You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for the great program! I am having major issues with segmentation as the higher intensities are getting clipped. Since my images are CV_16U, they get converted to CV_16S, but the higher values are clipped instead of getting shrunk. On the left is the image from imshow() and on the right from window explorer. The contrast only starts changing when I go below 32768.
Here is the output in the console:
I think there might be a bug with the CV_16U conversion. I tried re-saving my image using raster, and manged to regain the dynamic range to 65536, but the file format changed to CV_32F_5. The code is as follows:
Is there a way to fix this bug or do I have to re-save all my images using raster? Re-conversion via raster is quite inefficient, and I am not sure if there would be any downstream issues, hence I am pretty reluctant to use it.
Best Regards,
Gao Xiang Ham
The text was updated successfully, but these errors were encountered:
Yup, however I am not sure if the bug is with OpenCV or your src code, since OpenCV has some reported issues when reading tiff files as well. Currently I am using Rvision to just load and rescale my data to fit within 32768, since it is faster then raster. However, it would be great if I could directly load 16 bit unsigned. Thank you so much for helping!
Hi Daniel!
Thank you for the great program! I am having major issues with segmentation as the higher intensities are getting clipped. Since my images are CV_16U, they get converted to CV_16S, but the higher values are clipped instead of getting shrunk. On the left is the image from imshow() and on the right from window explorer. The contrast only starts changing when I go below 32768.
Here is the output in the console:
I think there might be a bug with the CV_16U conversion. I tried re-saving my image using
raster
, and manged to regain the dynamic range to 65536, but the file format changed to CV_32F_5. The code is as follows:Is there a way to fix this bug or do I have to re-save all my images using
raster
? Re-conversion viaraster
is quite inefficient, and I am not sure if there would be any downstream issues, hence I am pretty reluctant to use it.Best Regards,
Gao Xiang Ham
The text was updated successfully, but these errors were encountered: