GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
__magick_read__.cc File Reference
#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>
Include dependency graph for __magick_read__.cc:

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_functionG__magick_finfo__ (const octave_shlib &shl, bool relative)
 
C OCTAVE_EXPORT octave_functionG__magick_formats__ (const octave_shlib &shl, bool relative)
 
C OCTAVE_EXPORT octave_functionG__magick_ping__ (const octave_shlib &shl, bool relative)
 
C OCTAVE_EXPORT octave_functionG__magick_read__ (const octave_shlib &shl, bool relative)
 
C OCTAVE_EXPORT octave_functionG__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 &region)
 
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)
 

Function Documentation

template<class T >
static octave_idx_type bitdepth_from_class ( )
static

Definition at line 883 of file __magick_read__.cc.

static std::map<std::string, octave_idx_type> calculate_region ( const octave_scalar_map options)
static
static void encode_bool_image ( std::vector< Magick::Image > &  imvec,
const boolNDArray img 
)
static
template<class T >
static void encode_indexed_images ( std::vector< Magick::Image > &  imvec,
const T &  img,
const Matrix cmap 
)
static
template<class T >
static void encode_uint_image ( std::vector< Magick::Image > &  imvec,
const T &  img,
const T &  alpha 
)
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 void fill_exif ( octave_scalar_map map,
Magick::Image &  img,
const std::string &  key 
)
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 void fill_exif_floats ( octave_scalar_map map,
Magick::Image &  img,
const std::string &  key 
)
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 void fill_exif_ints ( octave_scalar_map map,
Magick::Image &  img,
const std::string &  key 
)
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 
)
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

Definition at line 121 of file __magick_read__.cc.

Referenced by G__magick_finfo__(), and G__magick_read__().

static Range get_region_range ( const octave_value region)
static
template<class T >
static uint32NDArray img_float2uint ( const T &  img)
static

Definition at line 863 of file __magick_read__.cc.

References max(), and octave_int< T >::max().

static std::map<octave_idx_type, std::string> init_disposal_methods ( )
static

Definition at line 1319 of file __magick_read__.cc.

Referenced by G__magick_finfo__().

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

Definition at line 892 of file __magick_read__.cc.

Referenced by encode_bool_image(), encode_indexed_images(), and encode_uint_image().

static std::map<std::string, octave_idx_type> init_reverse_disposal_methods ( )
static

Definition at line 1347 of file __magick_read__.cc.

Referenced by G__magick_write__().

static bool is_indexed ( const Magick::Image &  img)
static

Definition at line 75 of file __magick_read__.cc.

Referenced by G__magick_finfo__(), and G__magick_read__().

static bool is_valid_exif ( const std::string &  val)
static

Definition at line 1721 of file __magick_read__.cc.

Referenced by fill_exif(), fill_exif_floats(), and fill_exif_ints().

static octave_value magick_to_octave_value ( const Magick::CompressionType &  magick)
static

Definition at line 1623 of file __magick_read__.cc.

References octave_value().

Referenced by G__magick_finfo__().

static octave_value magick_to_octave_value ( const Magick::EndianType &  magick)
static

Definition at line 1666 of file __magick_read__.cc.

References octave_value().

static octave_value magick_to_octave_value ( const Magick::OrientationType &  magick)
static

Definition at line 1680 of file __magick_read__.cc.

References octave_value().

static octave_value magick_to_octave_value ( const Magick::ResolutionType &  magick)
static

Definition at line 1707 of file __magick_read__.cc.

References octave_value().

static void maybe_initialize_magick ( void  )
static
static void read_file ( const std::string &  filename,
std::vector< Magick::Image > &  imvec 
)
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__().

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 
)

Definition at line 304 of file __magick_read__.cc.

References calculate_region(), error(), Array< T >::length(), max(), and OCTAVE_QUIT.

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
static octave_value_list read_maps ( Magick::Image &  img)
static

Definition at line 187 of file __magick_read__.cc.

Referenced by G__magick_finfo__(), and read_indexed_images().

static void write_file ( const std::string &  filename,
const std::string &  ext,
std::vector< Magick::Image > &  imvec 
)
static

Definition at line 1361 of file __magick_read__.cc.

References error(), error_state, Faddeeva::w(), and warning().

Referenced by G__magick_write__().