how to obtain pixel values from multiple images in the same directory
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi,
i'm truying to get roi pixel values from many slices in the same folder,
dicomlist = dir(fullfile('D:\master\LUNGIX\LUNGIX\PET PETCT_WB_apc (Adult)\PET WB - 102\','*.dcm'))
for cnt = 1: size(dicomlist,1)
Slice(:,:,cnt) =double (dicomread(fullfile('D:\master\LUNGIX\LUNGIX\PET PETCT_WB_apc (Adult)\PET WB - 102\',dicomlist(cnt).name)));
for i=1:size(o,1)
roi(i)=double(I(a(i),b(i)));
res(:,:,cnt)=double (roi(i));
end
end
this gives the same pixel values for each slice
thanks in advance
댓글 수: 0
답변 (1개)
Muhammad Usman Saleem
2016년 4월 16일
편집: Muhammad Usman Saleem
2016년 4월 16일
is your image in RGB or have multiple images?
Here is my function, which will pixel value at given x,y value. Tested over RGB image
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!