calculate intensity of a part of images

조회 수: 1 (최근 30일)
Ham Man
Ham Man 2022년 6월 17일
편집: Ham Man 2022년 6월 17일
I have sequence of gray scale images (35000 images) with the size of 2048X700 and 12bit. I want to calculate the intensity of a part of images (e.g. from x=600px to x=800px). we know the intensity changes in each sequence in this region of images. How can I calculate the intensity of this region in each sequence and then have one image as aresult showing total intensity of this region?
I trully appreciate any help.

답변 (1개)

KSSV
KSSV 2022년 6월 17일
편집: KSSV 2022년 6월 17일
imgs = dir('*.jpg') ; % give the image extension
N = length(imgs) ; % Number of images
iwant = cell(N,1) ; % save the extracted part of image
idx = 600:800 ; % indices of x for which pixles to be extracted
for i = 1:N
img = imgs(i).name ; % name of each image
I = imread(img) ; % Read the image
iwant{i} = I(idx,:,:) ; % save the extracted part
end
  댓글 수: 1
Ham Man
Ham Man 2022년 6월 17일
편집: Ham Man 2022년 6월 17일
for iwant the index exceeds the array bound!
here is a sample of image and I want to save the image intensity inside the yellow region for all images.
error code: Dot indexing is not supported for variables of this type.
img = imgs(i).name ;

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

카테고리

Help CenterFile Exchange에서 Feature Detection and Extraction에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by