Image processing value Extraction

조회 수: 2 (최근 30일)
Jab
Jab 2016년 1월 25일
댓글: Jab 2016년 1월 25일
I have a 3D image of size 100*90*100 format int16 with more pixel values and another segmented image of size 100*90*100 in uint8 format with 4 pixels i.e 0- background 1, 2 and 3 foreground.
Now I want to extract the pixels from the 1st image based on the 2nd image pixel's location (example the pixels have to be extracted from the 1st image only where the 2nd image has pixel value 2).
Any help is appreciated.

채택된 답변

Image Analyst
Image Analyst 2016년 1월 25일
Try this:
extractedPixels = image1(image2==2);
It will be a 1-D vector of all the voxel values in image #1, where image #2 has a value of 2.
  댓글 수: 1
Jab
Jab 2016년 1월 25일
Thank you very much!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by