What happens when an image is first edited in Paint and then processed in Matlab?
Afficher commentaires plus anciens
When I open an existing image (TIF) with Paint and do some corrections and save it, and open it with MATLAB, it gives me the error of exceeding dimension! Why? What happens in Paint? I checked it and see it turns a 2D image into 3D! why and how? How can I correct it? If I need to do some modifications in Paint before going to Matlab, what should I do to keep the dimensions?
Thanks so much. Steven
Réponse acceptée
Plus de réponses (1)
Azzi Abdelmalek
le 14 Déc 2013
If im is your image, write
im=im(:,:,1)
1 commentaire
Walter Roberson
le 14 Déc 2013
If the file stored CMYK and the image is grayscale, you could try extracting im(:,:,4) . I am seeing discussions indicating that there may be some shifts if that is done.
Catégories
En savoir plus sur Import, Export, and Conversion dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!