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

4 ビュー (過去 30 日間)
Harinder  Kaur
Harinder Kaur 2015 年 11 月 21 日
回答済み: Image Analyst 2015 年 11 月 21 日
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 Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by