how to change the pixel value for each of a list of pixels
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I have a list of pixel's coordinates of 3D binary image (the list's dim: number of pixels to change x 3: the first column is the 'X' coordinate, the second is the 'Y' cooridinate and the third is 'Z' coordinate).
I would like to change each pixel in that list to hold the value of '0' (black color). how can I do it so it won't take too much time?
code examples would be appreciated! :)
0 件のコメント
回答 (1 件)
David Hill
2020 年 6 月 2 日
I(m(:,1),m(:,2),m(:,3))=0;
3 件のコメント
David Hill
2020 年 6 月 2 日
Are most of the pixels changing to zero? How do you decide which pixels to change (how is your maxtrix formed)?
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!