Mercurial > octave-nkf
view .dir-locals.el @ 16996:a1d091243d11
Read alpha values from indexed images. Always read indexes from indexed images.
* __magick_read__.cc (read_indexed_images): turn function into template to
remove duplicated loop. Create alpha channel from alpha values colormap.
Skip reading of colormap unless requested. Use fortran_vec to fill the
image instead of indexing the Array<T> with a dim_vector which requires
multiple calls to dim_vector::operator() per iteration.
(__magick_read__): Always read the indexes of an indexed image and not the
RGB or grayscale values when no colormap is requested for output (Matlab
compatibility).
* imread.m: document that an indexed image is always read as such,
independently of the colormap having been requested or not.
* NEWS: add note on the change for reading indexed images.
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Thu, 18 Jul 2013 01:52:09 +0100 |
parents | 7600200a54c8 |
children | 9ff04de067ce |
line wrap: on
line source
((nil . ((c-file-style . "gnu") (indent-tabs-mode . nil) (fill-column . 72) (eval . (when (string-match "\\.h\\'" (buffer-file-name)) (unless (string-match "/gnulib/" (buffer-file-name)) (c++-mode) (c-set-style "gnu")))))) (change-log-mode . ((indent-tabs-mode . t))) (makefile-mode . ((indent-tabs-mode . t))))