registration of pictures using intensities
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuesta aceptada
Sean de Wolski
el 11 de Jul. de 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'))
Más respuestas (1)
Image Analyst
el 11 de Jul. de 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.
Ver también
Categorías
Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!