Info

This question is closed. Reopen it to edit or answer.

A matrix of class double when converted to an image it is becoming white.Please help me with the code.

1 view (last 30 days)
Image
  5 Comments
sb icse
sb icse on 23 Nov 2018
I am using R2018b version which is perhaps the latest.It is not essential to convert the matrix to tif it may be converted to a jpg file.
Geoff Hayes
Geoff Hayes on 23 Nov 2018
From imwrite, If A is of data type uint16 and the output file format supports 16-bit data (JPEG, PNG, and TIFF), then imwrite outputs 16-bit values. If the output file format does not support 16-bit data, then imwrite returns an error. Please confirm that your input data is of type uint16 (cast to uint16 if you need to) and then try one of these three formats.

Answers (0)

This question is closed.

Tags

Community Treasure Hunt

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

Start Hunting!