Home MATLAB and imageJ: lossless work on double images (imadjust, strechlim, imwrite)
Reply: 0

MATLAB and imageJ: lossless work on double images (imadjust, strechlim, imwrite)

user3470496
1#
user3470496 Published in 2018-02-13 20:56:23Z

I'm working on a stack of "double" images. I am trying to do some contrast stretching and save the images in a lossless way which I can open later in imageJ for analysis.

I'm trying to conserve detail in the image so I'm concerned with data loss if I convert to uint8 etc. I would otherwise do:

    for i=1:num_images
      image=uint8(imageset(:,:,i));
      imadjust(image,stretchlim(image),[]);
      saveloc=[somefolder,num2str(i),'.tif'];
      imwrite(image,saveloc);
    end

I wan't to do the equivalent of this and create a folder of contrast adjusted images (im guessing 32 bit tiff?) which I can then load in imageJ in a view-able way.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 6.018979 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO