Difference visualizing image ImageJ (Bio-Format) and Matlab
Afficher commentaires plus anciens
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 commentaires
Jan
le 7 Mar 2018
What code do you use to display the image?
Ihiertje
le 8 Mar 2018
Jan
le 8 Mar 2018
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
le 8 Mar 2018
@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
le 16 Mar 2018
@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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Images dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!