problem with rgb to gray conversion

I got the rgb image output but after doing rgb to gray conversion i got null output image. I attached the image for reference. Suggest the way forward.

댓글 수: 4

Walter Roberson
Walter Roberson 2017년 12월 27일
Did you only do rgb2gray() or did you also do im2double() or perhaps double(), or did you possibly copy the contents of the grayscale image into another array?
SHOBA MOHAN
SHOBA MOHAN 2017년 12월 27일
I did rgb2gray(). The error was with the code prior to the rgb2gray(), corrected it and got the output also attached the same here. Thanks @ Walter.
Image Analyst
Image Analyst 2017년 12월 27일
So, it's solved now, right?
SHOBA MOHAN
SHOBA MOHAN 2017년 12월 27일
Yes @ Image Analyst

댓글을 달려면 로그인하십시오.

답변 (0개)

태그

질문:

2017년 12월 27일

댓글:

2017년 12월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by