#include "file-stat.h"
#include "lo-sysdep.h"
#include "oct-env.h"
#include "oct-time.h"
#include "defun.h"
#include "error.h"
#include "ov-struct.h"
#include "errwarn.h"
#include <Magick++.h>
#include <clocale>
Go to the source code of this file.
Classes | |
class | image_region |
Macros | |
#define | COMPRESS_MAGICK_IMAGE_VECTOR(GM_TYPE) |
Functions | |
template<typename T > | |
static octave_idx_type | bitdepth_from_class () |
static void | encode_bool_image (std::vector< Magick::Image > &imvec, const boolNDArray &img) |
template<typename T > | |
static void | encode_indexed_images (std::vector< Magick::Image > &imvec, const T &img, const Matrix &cmap) |
template<typename T > | |
static void | encode_uint_image (std::vector< Magick::Image > &imvec, const T &img, const T &alpha) |
OCTAVE_EXPORT octave_value_list | F__magick_finfo__ (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | F__magick_formats__ (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | F__magick_ping__ (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | F__magick_read__ (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | F__magick_write__ (const octave_value_list &args, int) |
static void | fill_exif (octave_scalar_map &map, Magick::Image &img, const std::string &key) |
static void | fill_exif_floats (octave_scalar_map &map, Magick::Image &img, const std::string &key) |
static void | fill_exif_ints (octave_scalar_map &map, Magick::Image &img, const std::string &key) |
static octave_idx_type | get_depth (Magick::Image &img) |
static range< double > | get_region_range (const octave_value ®ion) |
template<typename T > | |
static uint32NDArray | img_float2uint (const T &img) |
static std::map< octave_idx_type, std::string > | init_disposal_methods () |
static Magick::Image | init_enconde_image (const octave_idx_type &nCols, const octave_idx_type &nRows, const octave_idx_type &bitdepth, const Magick::ImageType &type, const Magick::ClassType &klass) |
static std::map< std::string, octave_idx_type > | init_reverse_disposal_methods () |
static bool | is_indexed (const Magick::Image &img) |
static bool | is_valid_exif (const std::string &val) |
static octave_value | magick_to_octave_value (const Magick::CompressionType &magick) |
static octave_value | magick_to_octave_value (const Magick::EndianType &magick) |
static octave_value | magick_to_octave_value (const Magick::OrientationType &magick) |
static octave_value | magick_to_octave_value (const Magick::ResolutionType &magick) |
static void | maybe_initialize_magick (void) |
static void | read_file (const std::string &filename, std::vector< Magick::Image > &imvec) |
template<typename T > | |
octave_value_list | read_images (std::vector< Magick::Image > &imvec, const Array< octave_idx_type > &frameidx, const octave_idx_type &nargout, const octave_scalar_map &options) |
template<typename T > | |
static octave_value_list | read_indexed_images (const std::vector< Magick::Image > &imvec, const Array< octave_idx_type > &frameidx, const octave_idx_type &nargout, const octave_scalar_map &options) |
static octave_value_list | read_maps (Magick::Image &img) |
static void | write_file (const std::string &filename, const std::string &ext, std::vector< Magick::Image > &imvec) |
#define COMPRESS_MAGICK_IMAGE_VECTOR | ( | GM_TYPE | ) |
|
static |
Definition at line 984 of file __magick_read__.cc.
|
static |
Definition at line 1095 of file __magick_read__.cc.
References Array< T, Alloc >::columns(), Array< T, Alloc >::data(), Array< T, Alloc >::dims(), init_enconde_image(), Array< T, Alloc >::ndims(), and Array< T, Alloc >::rows().
Referenced by F__magick_write__().
|
static |
Definition at line 1025 of file __magick_read__.cc.
References Array< T, Alloc >::data(), init_enconde_image(), and Array< T, Alloc >::rows().
|
static |
Definition at line 1143 of file __magick_read__.cc.
References error(), init_enconde_image(), and round().
OCTAVE_EXPORT octave_value_list F__magick_finfo__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1920 of file __magick_read__.cc.
References err_disabled_feature(), error(), octave_map::fast_elem_insert(), fill_exif(), fill_exif_floats(), fill_exif_ints(), format(), Array< T, Alloc >::fortran_vec(), get_depth(), init_disposal_methods(), is_indexed(), magick_to_octave_value(), maybe_initialize_magick(), Array< T, Alloc >::nnz(), string_vector::numel(), ovl(), print_usage(), read_file(), read_maps(), RowVector, octave_map::setfield(), and octave_scalar_map::setfield().
OCTAVE_EXPORT octave_value_list F__magick_formats__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2368 of file __magick_read__.cc.
References octave_map::checkelem(), octave_map::delete_elements(), octave_map::fast_elem_insert(), octave_map::fieldnames(), octave_scalar_map::getfield(), maybe_initialize_magick(), octave_map::numel(), ovl(), print_usage(), octave_scalar_map::setfield(), and octave_value::string_value().
OCTAVE_EXPORT octave_value_list F__magick_ping__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1686 of file __magick_read__.cc.
References err_disabled_feature(), error(), get_ASCII_filename(), maybe_initialize_magick(), ovl(), print_usage(), octave_scalar_map::setfield(), Faddeeva::w(), and warning().
Referenced by latex_renderer::read_image().
OCTAVE_EXPORT octave_value_list F__magick_read__ | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 845 of file __magick_read__.cc.
References err_disabled_feature(), error(), get_depth(), octave_scalar_map::getfield(), is_indexed(), octave_value::is_string(), maybe_initialize_magick(), n, Array< T, Alloc >::numel(), print_usage(), read_file(), Array< T, Alloc >::resize(), octave_value::string_value(), and octave_value::xint_vector_value().
Referenced by latex_renderer::read_image().
OCTAVE_EXPORT octave_value_list F__magick_write__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1498 of file __magick_read__.cc.
References octave_value::array_value(), octave_value::bool_array_value(), octave_value::cellstr_value(), octave_value::column_vector_value(), COMPRESS_MAGICK_IMAGE_VECTOR, encode_bool_image(), err_disabled_feature(), error(), octave_value::float_array_value(), octave_scalar_map::getfield(), init_reverse_disposal_methods(), octave_value::int_value(), octave_value::is_single_type(), octave_value::is_uint16_type(), octave_value::is_uint32_type(), octave_value::is_uint8_type(), Array< T, Alloc >::isempty(), octave_value::isfloat(), octave_value::islogical(), maybe_initialize_magick(), ovl(), print_usage(), read_file(), octave_value::string_value(), octave_value::uint16_array_value(), octave_value::uint32_array_value(), octave_value::uint8_array_value(), octave_value::uint_value(), and write_file().
|
static |
Definition at line 1853 of file __magick_read__.cc.
References is_valid_exif(), and octave_scalar_map::setfield().
Referenced by F__magick_finfo__().
|
static |
Definition at line 1886 of file __magick_read__.cc.
References is_valid_exif(), n, and octave_scalar_map::setfield().
Referenced by F__magick_finfo__().
|
static |
Definition at line 1863 of file __magick_read__.cc.
References is_valid_exif(), n, and octave_scalar_map::setfield().
Referenced by F__magick_finfo__().
|
static |
Definition at line 131 of file __magick_read__.cc.
Referenced by F__magick_finfo__(), and F__magick_read__().
|
static |
Definition at line 154 of file __magick_read__.cc.
References octave_value::array_value(), error(), octave_value::is_matrix_type(), octave_value::is_range(), octave_value::is_scalar_type(), Array< T, Alloc >::numel(), octave_value::range_value(), and octave_value::scalar_value().
Referenced by image_region::image_region().
|
static |
Definition at line 964 of file __magick_read__.cc.
References Array< T, Alloc >::fortran_vec(), max(), octave_int< T >::max(), and numel().
|
static |
Definition at line 1423 of file __magick_read__.cc.
Referenced by F__magick_finfo__().
|
static |
Definition at line 993 of file __magick_read__.cc.
Referenced by encode_bool_image(), encode_indexed_images(), and encode_uint_image().
|
static |
Definition at line 1451 of file __magick_read__.cc.
Referenced by F__magick_write__().
|
static |
Definition at line 85 of file __magick_read__.cc.
Referenced by F__magick_finfo__(), and F__magick_read__().
|
static |
Definition at line 1845 of file __magick_read__.cc.
Referenced by fill_exif(), fill_exif_floats(), and fill_exif_ints().
|
static |
Definition at line 1746 of file __magick_read__.cc.
References octave_value().
Referenced by F__magick_finfo__().
|
static |
Definition at line 1790 of file __magick_read__.cc.
References octave_value().
|
static |
Definition at line 1804 of file __magick_read__.cc.
References octave_value().
|
static |
Definition at line 1831 of file __magick_read__.cc.
References octave_value().
|
static |
Definition at line 788 of file __magick_read__.cc.
References warning_with_id().
Referenced by F__magick_finfo__(), F__magick_formats__(), F__magick_ping__(), F__magick_read__(), and F__magick_write__().
|
static |
Definition at line 765 of file __magick_read__.cc.
References error(), get_ASCII_filename(), Faddeeva::w(), and warning().
Referenced by F__magick_finfo__(), F__magick_read__(), and F__magick_write__().
octave_value_list read_images | ( | std::vector< Magick::Image > & | imvec, |
const Array< octave_idx_type > & | frameidx, | ||
const octave_idx_type & | nargout, | ||
const octave_scalar_map & | options | ||
) |
Definition at line 386 of file __magick_read__.cc.
References image_region::col_cache(), image_region::col_out(), image_region::col_shift(), image_region::col_start(), error(), max(), Array< T, Alloc >::numel(), image_region::row_cache(), image_region::row_out(), image_region::row_shift(), and image_region::row_start().
|
static |
Definition at line 289 of file __magick_read__.cc.
References image_region::col_cache(), image_region::col_out(), image_region::col_shift(), image_region::col_start(), Array< T, Alloc >::data(), Array< T, Alloc >::fortran_vec(), Array< T, Alloc >::numel(), octave_value(), read_maps(), image_region::row_cache(), image_region::row_out(), image_region::row_shift(), and image_region::row_start().
|
static |
Definition at line 267 of file __magick_read__.cc.
References ColumnVector, and Matrix.
Referenced by F__magick_finfo__(), and read_indexed_images().
|
static |
Definition at line 1465 of file __magick_read__.cc.
References error(), Faddeeva::w(), and warning().
Referenced by F__magick_write__().