필터 지우기
필터 지우기

Calculate mean with same ROI on multiple images

조회 수: 1 (최근 30일)
Ihiertje
Ihiertje 2017년 2월 1일
댓글: Adam 2017년 2월 2일
I used the function mmROI to draw three ROIs and calculate the mean value of this ROI in multiple images. Next, I corrected the orginal images and now I want to calculate the mean value again, using the same ROIs. However, I cannot get it done. I tried to use poly2mask and roipoly, but haven't found the solution yet. Below are the two things I've tried.
if true
I = Fluo_Corrected_ExpTime(:,:,:,1);
J = imadjust(I);
BW = roipoly(X1, Y1,J,720,1080);
imshow(J)
hold on
plot(X1, Y1, 'r.-', 'MarkerSize',15);
end
if true
I = Fluo_Corrected_ExpTime(:,:,:,2);
J = imadjust(I);
imagesc(I)
ROI1 = poly2mask (X1, Y1,720,1080); %mxn is size image
Bimg = imagesc(ROI1)
end
  댓글 수: 4
Ihiertje
Ihiertje 2017년 2월 1일
@Adam: the first time I used the function mmROI in which the mean value is calculated. However, I want to use the ROI defined in this function to use in other images. Therefore, I cannot do it the same way.
Adam
Adam 2017년 2월 2일
I've never heard of a function called mmROI so I don't really know what that does.

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

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by