Mercurial > octave-libtiff
comparison scripts/image/imread.m @ 31211:edbd725ee76c
imwrite: fixed tests to reflect alpha channel behavior for Tiff images
* scripts/image/imwrite.m: modified tests to correctly handled the new
behavior for alpha channel in Tiff images.
* scripts/image/imread.m: added a note in the function documentation
about the alpha channel behavior for Tiff images.
author | magedrifaat <magedrifaat@gmail.com> |
---|---|
date | Tue, 06 Sep 2022 21:12:29 +0200 |
parents | 796f54d4ddbf |
children |
comparison
equal
deleted
inserted
replaced
31210:e83a62df599b | 31211:edbd725ee76c |
---|---|
46 ## always return the indexes for a colormap, independent of whether @var{map} | 46 ## always return the indexes for a colormap, independent of whether @var{map} |
47 ## is a requested output. To obtain the actual RGB image, use @code{ind2rgb}. | 47 ## is a requested output. To obtain the actual RGB image, use @code{ind2rgb}. |
48 ## When more than one indexed image is being read, @var{map} is obtained from | 48 ## When more than one indexed image is being read, @var{map} is obtained from |
49 ## the first. In some rare cases this may be incorrect and @code{imfinfo} can | 49 ## the first. In some rare cases this may be incorrect and @code{imfinfo} can |
50 ## be used to obtain the colormap of each image. | 50 ## be used to obtain the colormap of each image. |
51 ## | |
52 ## For TIFF images, the transaprency channel is appended to the rest of the | |
53 ## channels in @var{img}, and @var{alpha} is always empty for matlab | |
54 ## compatibility. To differentiate between RGBA and CMYK images, check | |
55 ## @code{ColorType} or @code{PhotometricInterpretation} fields in the output | |
56 ## of @code{imfinfo}. | |
51 ## | 57 ## |
52 ## See the Octave manual for more information in representing images. | 58 ## See the Octave manual for more information in representing images. |
53 ## (@pxref{Representing Images}) | 59 ## (@pxref{Representing Images}) |
54 ## | 60 ## |
55 ## Some file formats, such as TIFF and GIF, are able to store multiple images | 61 ## Some file formats, such as TIFF and GIF, are able to store multiple images |