Difference visualizing image ImageJ (Bio-Format) and Matlab
이전 댓글 표시
I have a problem visualizing a stack/multipage tiff file with both ImageJ (Bio-Format plug-in) and MATLAB. In the MATLAB file there seems to be more noise or higher background values compared to the ImageJ image. This is not in the visualization, but the ratio between signal (circles) and background differs between the two images. However, I cannot find if there is something wrong with my MATLAB script in visualizing the images. As I thought it can simply be done with imread (see code below).
Image = '0000127_01_800.TIF';
info = imfinfo('0000127_01_800.TIF');
num_images = numel(info);
for k = 1:num_images
A = imread(Image,k,'Info', info);
B{k} = A
end
Does someone has experience with both ImageJ and MATLAB who can maybe help me to understand this difference?
Thanks!
댓글 수: 8
Jan
2018년 3월 7일
What code do you use to display the image?
Ihiertje
2018년 3월 8일
Jan
2018년 3월 8일
Is it an indexed image? What happens for this:
[A, map] = imread(Image,k,'Info', info);
B{k} = ind2rgb(A, map);
Without having your TIF file, this is just guessing.
Also, what is
max(B{1}(:))
min(B{1}(:))
class(B{1})
This is either a case of not reading a colour map if the image is indexed as per Jan's question or a case of not scaling the display correctly. I'd veer more towards Jan's hypothesis though as the latter shouldn't emphasise the background at the expense of the circles.
Ihiertje
2018년 3월 8일
@Ihiertje: Please do not let us search your "previous post", but provide a link to it.
The code I have posted does not use any indexing, therefore I cannot guess, where the error message 'index exceeds matrix dimensions' is coming from. Please post the relevant part of your code and the complete error message.
Guillaume
2018년 3월 16일
@Jan, I think lhiertje meant his/her previous comment, the one with the zip file. I too don't see where the error could be coming from.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Blocked Images에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!