Removing image outliers from average images using if loop?
    조회 수: 5 (최근 30일)
  
       이전 댓글 표시
    
Hi there, what I am trying to do is i have a set of averaged images, I more or less the position of the max value. I want to set up an if loop to then remove these images from the average image?
if true
imgindex = numim0:numimages
   imxstruct = readimx(fullfile(stemgating, sprintf('B%05d.im7', imgindex)));
   img = imxstruct.Frames{1}.Components{1}.Planes{1};                     
    FUNC=@(x)max(x(:));
     img1=medfilt2(img,[3 3]);              
   LIIimages{imgindex}= flip(imrotate((img1),-90),2)
end
LIIimages=cat(3,LIIimages{:});
meanimg=mean(LIIimages,3);                       
meanimg1=meanimg1+meanimg;                           
end
AverageImage=(meanimg1/(numimages+1numim0))
댓글 수: 0
답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
