필터 지우기
필터 지우기

how to change the pixel value for each of a list of pixels

조회 수: 7 (최근 30일)
YA
YA 2020년 6월 2일
댓글: YA 2020년 6월 2일
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! :)

답변 (1개)

David Hill
David Hill 2020년 6월 2일
I(m(:,1),m(:,2),m(:,3))=0;
  댓글 수: 3
David Hill
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)?
YA
YA 2020년 6월 2일
Im using 'regioprops3' to create groups of connected 3d binary volumes inside the 3d image(mask), and I would like to remove the pixels from one of those groups from the 3d mask (by changing their pixels value to 0)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 3-D Volumetric Image Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by