how can i color the particular block of the image?
古いコメントを表示
m working on gray scale images.. i've extracted a particular block from the code for the above is :
blockNumber = 1;
blockrows =2; blockcols = 2;
[blockcol, blockrow] = ind2sub( [blockcols, blockrows], blockNumber);
colstart = (blockcol-1) * blockSizeC + 1;
rowstart = (blockrow - 1) * blockSizeR + 1;
oneBlock1 = grayImage(rowstart : rowstart + blockSizeR - 1, colstart : colstart + blockSizeC - 1);
imshow(oneBlock);
i want to color the above block..how can i do so????
grayImage(rowstart : rowstart + blockSizeR - 1, colstart : colstart + blockSizeC - 1)=0;
the above code color the block with black but it distorts the intensity values.
plz help me to do so..
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Neighborhood and Block Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!