GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "file-stat.h"
#include "oct-env.h"
#include "oct-time.h"
#include "defun-dld.h"
#include "error.h"
#include "ov-struct.h"
#include "gripes.h"
#include <Magick++.h>
#include <clocale>
Go to the source code of this file.
Functions | |
template<class T > | |
static octave_idx_type | bitdepth_from_class () |
static std::map< std::string, octave_idx_type > | calculate_region (const octave_scalar_map &options) |
static void | encode_bool_image (std::vector< Magick::Image > &imvec, const boolNDArray &img) |
template<class T > | |
static void | encode_indexed_images (std::vector< Magick::Image > &imvec, const T &img, const Matrix &cmap) |
template<class 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) |
C OCTAVE_EXPORT octave_function * | G__magick_finfo__ (const octave_shlib &shl, bool relative) |
C OCTAVE_EXPORT octave_function * | G__magick_formats__ (const octave_shlib &shl, bool relative) |
C OCTAVE_EXPORT octave_function * | G__magick_ping__ (const octave_shlib &shl, bool relative) |
C OCTAVE_EXPORT octave_function * | G__magick_read__ (const octave_shlib &shl, bool relative) |
C OCTAVE_EXPORT octave_function * | G__magick_write__ (const octave_shlib &shl, bool relative) |
static octave_idx_type | get_depth (Magick::Image &img) |
static Range | get_region_range (const octave_value ®ion) |
template<class 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<class 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<class 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) |
|
static |
Definition at line 883 of file __magick_read__.cc.
|
static |
Definition at line 156 of file __magick_read__.cc.
References Range::base(), octave_value::cell_value(), get_region_range(), octave_scalar_map::getfield(), Range::inc(), Range::max(), and Range::nelem().
Referenced by read_images(), and read_indexed_images().
|
static |
Definition at line 993 of file __magick_read__.cc.
References Array< T >::columns(), Array< T >::dims(), Array< T >::fortran_vec(), init_enconde_image(), Array< T >::ndims(), OCTAVE_QUIT, and Array< T >::rows().
Referenced by G__magick_write__().
|
static |
Definition at line 924 of file __magick_read__.cc.
References Array< T >::fortran_vec(), init_enconde_image(), OCTAVE_QUIT, and Array< T >::rows().
|
static |
Definition at line 1040 of file __magick_read__.cc.
References error(), init_enconde_image(), and OCTAVE_QUIT.
OCTAVE_EXPORT octave_value_list F__magick_finfo__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1796 of file __magick_read__.cc.
OCTAVE_EXPORT octave_value_list F__magick_formats__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2249 of file __magick_read__.cc.
OCTAVE_EXPORT octave_value_list F__magick_ping__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1574 of file __magick_read__.cc.
OCTAVE_EXPORT octave_value_list F__magick_read__ | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 731 of file __magick_read__.cc.
OCTAVE_EXPORT octave_value_list F__magick_write__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1395 of file __magick_read__.cc.
|
static |
Definition at line 1729 of file __magick_read__.cc.
References is_valid_exif(), and octave_scalar_map::setfield().
Referenced by G__magick_finfo__().
|
static |
Definition at line 1762 of file __magick_read__.cc.
References is_valid_exif(), and octave_scalar_map::setfield().
Referenced by G__magick_finfo__().
|
static |
Definition at line 1739 of file __magick_read__.cc.
References is_valid_exif(), and octave_scalar_map::setfield().
Referenced by G__magick_finfo__().
C OCTAVE_EXPORT octave_function* G__magick_finfo__ | ( | const octave_shlib & | shl, |
bool | relative | ||
) |
Definition at line 1796 of file __magick_read__.cc.
References base_file_stat::error(), error(), error_state, octave_map::fast_elem_insert(), fill_exif(), fill_exif_floats(), fill_exif_ints(), Array< T >::fortran_vec(), get_depth(), gripe_disabled_feature(), init_disposal_methods(), is_indexed(), magick_to_octave_value(), maybe_initialize_magick(), base_file_stat::mtime(), Array< T >::nnz(), Array< T >::numel(), OCTAVE_QUIT, octave_value(), print_usage(), read_file(), read_maps(), octave_scalar_map::setfield(), octave_map::setfield(), base_file_stat::size(), octave_base_tm::strftime(), and octave_value::string_value().
C OCTAVE_EXPORT octave_function* G__magick_formats__ | ( | const octave_shlib & | shl, |
bool | relative | ||
) |
Definition at line 2249 of file __magick_read__.cc.
References octave_map::checkelem(), octave_map::delete_elements(), octave_map::fast_elem_insert(), octave_scalar_map::getfield(), gripe_disabled_feature(), maybe_initialize_magick(), octave_map::numel(), print_usage(), octave_scalar_map::setfield(), and octave_value::string_value().
C OCTAVE_EXPORT octave_function* G__magick_ping__ | ( | const octave_shlib & | shl, |
bool | relative | ||
) |
Definition at line 1574 of file __magick_read__.cc.
References error(), gripe_disabled_feature(), maybe_initialize_magick(), octave_value(), print_usage(), octave_scalar_map::setfield(), octave_value::string_value(), Faddeeva::w(), and warning().
C OCTAVE_EXPORT octave_function* G__magick_read__ | ( | const octave_shlib & | shl, |
bool | relative | ||
) |
Definition at line 731 of file __magick_read__.cc.
References error(), error_state, get_depth(), octave_scalar_map::getfield(), gripe_disabled_feature(), octave_value::int_vector_value(), is_indexed(), octave_value::is_string(), maybe_initialize_magick(), Array< T >::nelem(), print_usage(), read_file(), Array< T >::resize(), and octave_value::string_value().
C OCTAVE_EXPORT octave_function* G__magick_write__ | ( | const octave_shlib & | shl, |
bool | relative | ||
) |
Definition at line 1395 of file __magick_read__.cc.
References octave_value::array_value(), octave_value::bool_array_value(), octave_value::cellstr_value(), octave_value::column_vector_value(), encode_bool_image(), error(), error_state, octave_value::float_array_value(), octave_scalar_map::getfield(), gripe_disabled_feature(), init_reverse_disposal_methods(), octave_value::int_value(), octave_value::is_bool_type(), Array< T >::is_empty(), octave_value::is_float_type(), octave_value::is_single_type(), octave_value::is_uint16_type(), octave_value::is_uint32_type(), octave_value::is_uint8_type(), maybe_initialize_magick(), 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 121 of file __magick_read__.cc.
Referenced by G__magick_finfo__(), and G__magick_read__().
|
static |
Definition at line 139 of file __magick_read__.cc.
References error(), octave_value::is_range(), octave_value::is_scalar_type(), octave_value::range_value(), and octave_value::scalar_value().
Referenced by calculate_region().
|
static |
Definition at line 863 of file __magick_read__.cc.
References max(), and octave_int< T >::max().
|
static |
Definition at line 1319 of file __magick_read__.cc.
Referenced by G__magick_finfo__().
|
static |
Definition at line 892 of file __magick_read__.cc.
Referenced by encode_bool_image(), encode_indexed_images(), and encode_uint_image().
|
static |
Definition at line 1347 of file __magick_read__.cc.
Referenced by G__magick_write__().
|
static |
Definition at line 75 of file __magick_read__.cc.
Referenced by G__magick_finfo__(), and G__magick_read__().
|
static |
Definition at line 1721 of file __magick_read__.cc.
Referenced by fill_exif(), fill_exif_floats(), and fill_exif_ints().
|
static |
Definition at line 1623 of file __magick_read__.cc.
References octave_value().
Referenced by G__magick_finfo__().
|
static |
Definition at line 1666 of file __magick_read__.cc.
References octave_value().
|
static |
Definition at line 1680 of file __magick_read__.cc.
References octave_value().
|
static |
Definition at line 1707 of file __magick_read__.cc.
References octave_value().
|
static |
Definition at line 694 of file __magick_read__.cc.
References octave_env::get_program_invocation_name(), and warning_with_id().
Referenced by G__magick_finfo__(), G__magick_formats__(), G__magick_ping__(), G__magick_read__(), and G__magick_write__().
|
static |
Definition at line 676 of file __magick_read__.cc.
References error(), error_state, Faddeeva::w(), and warning().
Referenced by G__magick_finfo__(), G__magick_read__(), and G__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 304 of file __magick_read__.cc.
References calculate_region(), error(), Array< T >::length(), max(), and OCTAVE_QUIT.
|
static |
Definition at line 209 of file __magick_read__.cc.
References calculate_region(), Array< T >::fortran_vec(), Array< T >::length(), Array< T >::numel(), OCTAVE_QUIT, octave_value(), and read_maps().
|
static |
Definition at line 187 of file __magick_read__.cc.
Referenced by G__magick_finfo__(), and read_indexed_images().
|
static |
Definition at line 1361 of file __magick_read__.cc.
References error(), error_state, Faddeeva::w(), and warning().
Referenced by G__magick_write__().