Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Harinder  Kaur
Harinder Kaur le 21 Nov 2015
Help Me..its urgent

Réponses (1)

Image Analyst
Image Analyst le 21 Nov 2015
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));

Catégories

En savoir plus sur Image Segmentation and Analysis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by