registration of pictures using intensities
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Sean de Wolski
2012-7-11
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'))
更多回答(1 个)
Image Analyst
2012-7-11
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.
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!