Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

imwrite generates incorrect files by mixing up colors

1 visualizzazione (ultimi 30 giorni)
Tanguy
Tanguy il 15 Ago 2016
Chiuso: MATLAB Answer Bot il 20 Ago 2021
Hi,
I'm trying to save a 22000x40000 RGB int8 image (values range from 8 to 255) in jpg. when I save the full file I get: imwrite(img_diam,'img_full.jpg')
(see first attached image)
when I save the same image cropped by one pixel I get: imwrite(img_diam(2:end-1,2:end-1,:),'img_crop.jpg')
(see second attached image)
When I crop even more I get the correct image..
Thank you for your Help. TD
  1 Commento
Swathik Kurella Janardhan
Swathik Kurella Janardhan il 17 Ago 2016
Can you share the image data(img_diam) to reproduce the issue? Also, share a screenshot of the correct image and the image data of the correct image.

Risposte (0)

Questa domanda è chiusa.

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by