RGB Color Space Image Segmentation
이전 댓글 표시

Hello All.
I have been trying to replace the original R, G and B components of an RGB image by applying the attached equations in MATLAB.
I don't know the functions to use. I have tried applying different filters but the results I get are inaccurate.
댓글 수: 8
Image Analyst
2020년 4월 14일
There is nothing attached so we don't know the functions to use either. In the meantime, here's a snippet that might get you started:
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
% Now do your math on the separate channels, then...
% Recombine separate color channels into a single, true color RGB image.
rgbImage = cat(3, redChannel, greenChannel, blueChannel);
Muftahu Kabir
2020년 4월 14일
Muftahu Kabir
2020년 4월 15일
Image Analyst
2020년 4월 15일
The equations say to set all pixel values to (0,0,0) which is the RGB for pure black. They'll never eve get (255,255,255) because I'' is never anything but (0,0,0) as you can see from equation (5). I think these equations were written down incorrectly. It does not do segmentation when you simply set everything to zero.
Muftahu Kabir
2020년 4월 22일
Image Analyst
2020년 4월 22일
Everything is zero except I hat if I hat if I'' is more than 0. But from equation (5), I'' is never anything but zero. Hence I hat will never be anything but zero either. I suggest you contact the author for the correct formulas, or look into imgradient().
Mrutyunjaya Hiremath
2020년 4월 24일
There is a problem in given equations
Here is the reults, after some assumptions for intitial values, like Idash ... sigma ...

Muftahu Kabir
2020년 4월 24일
편집: Muftahu Kabir
2020년 4월 24일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!