How I can divide a color image in to blocks and access the RGB of each individual block?
古いコメントを表示
I have tried using blockproc(), but could not get it.
回答 (2 件)
Image Analyst
2013 年 6 月 7 日
0 投票
3 件のコメント
syed musa
2013 年 6 月 11 日
syed musa
2013 年 6 月 11 日
Image Analyst
2013 年 6 月 11 日
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
% Threshold
redBlobs = redChannel > 200 & greenChannel < 40 & blueChannel < 70; % or whatever.
labeledImage = bwlabel(redBlobs);
measurements = regionprops(labeledImage, 'all');
allAreas = [measurements.Area];
allPerimeters = [measurements.Perimeter];
allECD = [measurements.EquivDiameter];
allCircularities = allPerimeters.^2 ./ (4 * pi * allAreas);
yagnesh
2013 年 6 月 11 日
0 投票
y=imread('colorimage.jpg');
R=y(:,:,1);
G=y(:,:,2);
B=y(:,:,3);
in this way you can saperate
カテゴリ
ヘルプ センター および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!