필터 지우기
필터 지우기

How to convert False color Images to Black & White?

조회 수: 4 (최근 30일)
Manoj Kumar
Manoj Kumar 2014년 6월 3일
댓글: Image Analyst 2017년 3월 14일
Hi, I have an Image and I wanted that to convert into BW. But when I use im2bw(), it is not showing the black & white image. I here by attach the image.
Thank you...

채택된 답변

Image Analyst
Image Analyst 2014년 6월 3일
I can't see the image. If you use rgb2gray() you probably won't get anything that makes sense. You really need to have the color map that was used to pseudocolor the image. If you have that you can recover the original gray scale image using
grayImage = rgb2ind(rgbImage, colorMap);
Then you can threshold that grayscale image to get a binary image. By the way, your image link is broken.
  댓글 수: 5
Image Analyst
Image Analyst 2014년 6월 5일
I'm not sure what you mean, but see my attached freehand masking demo and see if that does what you want.
Manoj Kumar
Manoj Kumar 2014년 6월 6일
It worked, thank you..

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

추가 답변 (1개)

pallavi awate
pallavi awate 2017년 3월 14일
hello sir, i have to count the object from the image.but their is some problem.when two object is too closed then it shows this is one object.now how i can solve this.please help me.can u send me the code for this.please please please..
  댓글 수: 1
Image Analyst
Image Analyst 2017년 3월 14일
The code would have to be optimized for your image(s), which you have not provided.

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

카테고리

Help CenterFile Exchange에서 Modify Image Colors에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by