How to normalise the elements of R-B feature image to the range of 0-255

5 次查看(过去 30 天)
Help Me..its urgent

回答(1 个)

Image Analyst
Image Analyst 2015-11-21
Try this:
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
rMinusB = 255 * mat2gray(double(redChannel) - double(blueChannel));

类别

Help CenterFile Exchange 中查找有关 Image Segmentation and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by