registration of pictures using intensities
1 view (last 30 days)
Show older comments
i have given a picture which is saved up as .tif. the dimension of this picture is 512x512. The picture is valued as uint8. This picture will be translated in x and y direction as well as rotated.now i want to save it up as .tif again or jpg., because i dont want to loose any quality (intensities) of that picture. When i instead use .bmp the quality will be much less.
My problem is: if i use .tif or .jpg to save it up and afterwards i use I=imread('....tif') to load it up, then the pictures value shows up as 512x512x3 3-D.
my goal is it to have the translated and rotated picture as 512x512 2- D and not 3-D after using I=imread ('...').
Thank you for you help!!=)))
0 Comments
Accepted Answer
Sean de Wolski
on 11 Jul 2012
What size is the image you are writing and how are you writing it?
Using *.tif does not add two extra channels for me. Consider:
imwrite(magic(50),'test.tif');
size(imread('test.tif'))
More Answers (1)
Image Analyst
on 11 Jul 2012
I think you're confused. JPG will save as compressed and you will lose quality. TIFF and BMP are uncompressed and don't lose any quality. JPEG2000 has a lossless compression mode. But I recommend what many (most) people are using these days and that is PNG. It has lossless compression and therefore no loss of quality. It should not add or subtract any color planes when you save it.
See Also
Categories
Find more on Read, Write, and Modify Image in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!