HSV image color thresholding

조회 수: 23 (최근 30일)
Riad Mahmud Anik
Riad Mahmud Anik 2017년 9월 29일
댓글: Image Analyst 2017년 10월 1일
how can we filter out (turn black) any pixel that is not the color of the lanes? (in this case white or yellow.).I have converted the image in HSV from RGB.

답변 (1개)

Image Analyst
Image Analyst 2017년 9월 29일
What lanes? Basically just create a mask of where the white or yellow pixels are that you want to blacken, then do this:
% Mask the image using bsxfun() function to multiply the mask by each channel individually.
maskedRgbImage = bsxfun(@times, rgbImage, cast(mask, 'like', rgbImage));
  댓글 수: 2
Riad Mahmud Anik
Riad Mahmud Anik 2017년 10월 1일
road lanes..."https://medium.com/computer-car/udacity-self-driving-car-nanodegree-project-1-finding-lane-lines-9cd6a846c58c"...i want to implement this project in matlab....but for a single image as input
Image Analyst
Image Analyst 2017년 10월 1일
See road following algorithms here: http://www.visionbib.com/bibliography/contentsactive.html#Active%20Vision,%20Camera%20Calibration,%20Mobile%20Robots,%20Navigation,%20Road%20Following Sorry, I don't have code for any of them since autonomous navigation is not my field, but you can ask the authors.

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

카테고리

Help CenterFile Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by