필터 지우기
필터 지우기

Thresholding operation on HSV Image

조회 수: 7 (최근 30일)
kartheek
kartheek 2014년 2월 4일
답변: Image Analyst 2023년 7월 27일
I wish to do thresholding operation on a HSV Image converted from an RGB image. Is there any function like imtool()for RGB images that display the HSV Values of a pixel?

답변 (3개)

Image Analyst
Image Analyst 2014년 2월 4일
Yes. My demo "Simple color detection by hue" in my File Exchange does that. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 Also there is an interactive thresholding application.
  댓글 수: 1
Image Analyst
Image Analyst 2014년 2월 5일
You can use impixelinfo() to have the value of the three channel image that's being displayed show up in a little static text box as you mouse around. The image can be RGB, grayscale, or HSV. Let me know if you can't figure it out. You may have to play around with the 'Position' option to see the text.

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


kartheek
kartheek 2014년 2월 4일
Dear Analyst
Thank you for your answer. But, is there a way where we can see the instantaneous values of H,S,V in the same way we can get values of R,G,B when I hover the cursor over the pixels using imtool()? coz, I want H,S,V values for only a particular region of image
  댓글 수: 4
Image Analyst
Image Analyst 2014년 2월 5일
No. What original HSV values? As far as I know there is only one hsv image, and it has values between 0 and 1, like it should. Exactly what are you expecting?
JESU
JESU 2023년 7월 27일
channel1Min = 0.825;
channel1Max = 0.451;
% Create mask based on chosen histogram thresholds
sliderBW = ( (H(:,:,1) >= channel1Min) | (H(:,:,1) <= channel1Max) );
BW = sliderBW;

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


Image Analyst
Image Analyst 2023년 7월 27일
You can use the Color Thresholder app on the Apps tab of the tool ribbon to interactively threshold the color image by moving sliders.

카테고리

Help CenterFile Exchange에서 Explore and Edit Images with Image Viewer App에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by