HSV image color thresholding
显示 更早的评论
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
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));
See my File Exchange for color segmentation demos: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862&sort=downloads_desc
2 个评论
Riad Mahmud Anik
2017-10-1
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.
类别
在 帮助中心 和 File 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!