Home MATLAB and imageJ: lossless work on double images (imadjust, strechlim, imwrite)
 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.