필터 지우기
필터 지우기

Using a mask with a Different matrix size as target image to obtain image

조회 수: 2 (최근 30일)
Chris
Chris 2013년 4월 17일
I have a known Mask as a 240x240 Double. I usually use this mask against the same matrix size image but I need a way to convert this to use it against an image with a matrix size 448x448 uint16.
The code i usually use is
T2FS=dicomread(T2FSa{1});
T2FS(~mask)=NaN;
imagesc(T2FS); %shows the mask
avgSig=mean(T2FS(mask));
but the mask and the image T2FS aren't the same image matrix size. Any help would be greatly appreciated.
  댓글 수: 1
Image Analyst
Image Analyst 2013년 4월 17일
So where in the larger image do you want to place your mask? Or do you want to scale it with imresize() so that it's the same size as your image?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Author Block Masks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by