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 で Images についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!