RGB Color Space Image Segmentation
Show older comments

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 Comments
Image Analyst
on 14 Apr 2020
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
on 14 Apr 2020
Muftahu Kabir
on 15 Apr 2020
Image Analyst
on 15 Apr 2020
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
on 22 Apr 2020
Image Analyst
on 22 Apr 2020
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
on 24 Apr 2020
There is a problem in given equations
Here is the reults, after some assumptions for intitial values, like Idash ... sigma ...

Muftahu Kabir
on 24 Apr 2020
Edited: Muftahu Kabir
on 24 Apr 2020
Accepted Answer
More Answers (0)
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!