The image is unviewable

Hi,
I have an image in tiff format that have a lot of darkness in it. I wanted to know that how to make it view able so that i can see the information.
I have attached the file, kindly guide me how to achieve the target.
Regards

1 个评论

(image did not get attached -- note that you might need to zip it in order to attach it)

请先登录,再进行评论。

 采纳的回答

If it is a grayscale image then use imagesc() or use imshow() with a second argument of [] as in
YourImage = imread('YourFile.tif');
imshow(YourImage, [])
If it is a color image then try
YourImage = imread('YourFile.tif');
ScaledImage = mat2gray(YourImage);
imshow(ScaledImage);
mat2gray is misleadingly named and does not convert to gray.

3 个评论

For your image you might wish to use
YourGrey = rgb2gray(YourImage);
h = imshow(YourGrey);
imcontrast(h)
and then use the tool to adjust the boundaries
Thanks Roberson, Can you please also guide me how to write these changes on the file? Regards
https://www.mathworks.com/matlabcentral/answers/119461-using-imcontrast-to-adjust-image-then-apply-that-adjustment-to-several-images

请先登录,再进行评论。

更多回答(1 个)

Ghulam
Ghulam 2017-12-26

0 个投票

The one link i would like to suggest that will help anyone of you facing the same problem
https://www.mathworks.com/help/images/adjust-image-intensity-values-to-specified-range.html
Regards

类别

帮助中心File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by