matrix.c File Reference

#include "MagickCore/studio.h"
#include "MagickCore/blob.h"
#include "MagickCore/blob-private.h"
#include "MagickCore/cache.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/image-private.h"
#include "MagickCore/matrix.h"
#include "MagickCore/matrix-private.h"
#include "MagickCore/memory_.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/pixel-private.h"
#include "MagickCore/resource_.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/utility.h"

Data Structures

struct  _MatrixInfo

Defines

#define GaussJordanSwap(x, y)

Functions

static MagickOffsetType WriteMatrixElements (const MatrixInfo *magick_restrict matrix_info, const MagickOffsetType offset, const MagickSizeType length, const unsigned char *magick_restrict buffer)
static MagickBooleanType SetMatrixExtent (MatrixInfo *magick_restrict matrix_info, MagickSizeType length)
MagickExport MatrixInfoAcquireMatrixInfo (const size_t columns, const size_t rows, const size_t stride, ExceptionInfo *exception)
MagickExport double ** AcquireMagickMatrix (const size_t number_rows, const size_t size)
MagickExport MatrixInfoDestroyMatrixInfo (MatrixInfo *matrix_info)
MagickPrivate MagickBooleanType GaussJordanElimination (double **matrix, double **vectors, const size_t rank, const size_t number_vectors)
MagickExport size_t GetMatrixColumns (const MatrixInfo *matrix_info)
static ssize_t EdgeX (const ssize_t x, const size_t columns)
static ssize_t EdgeY (const ssize_t y, const size_t rows)
static MagickOffsetType ReadMatrixElements (const MatrixInfo *magick_restrict matrix_info, const MagickOffsetType offset, const MagickSizeType length, unsigned char *magick_restrict buffer)
MagickExport MagickBooleanType GetMatrixElement (const MatrixInfo *matrix_info, const ssize_t x, const ssize_t y, void *value)
MagickExport size_t GetMatrixRows (const MatrixInfo *matrix_info)
MagickPrivate void LeastSquaresAddTerms (double **matrix, double **vectors, const double *terms, const double *results, const size_t rank, const size_t number_vectors)
MagickExport ImageMatrixToImage (const MatrixInfo *matrix_info, ExceptionInfo *exception)
MagickExport MagickBooleanType NullMatrix (MatrixInfo *matrix_info)
MagickExport double ** RelinquishMagickMatrix (double **matrix, const size_t number_rows)
MagickExport MagickBooleanType SetMatrixElement (const MatrixInfo *matrix_info, const ssize_t x, const ssize_t y, const void *value)

Define Documentation

#define GaussJordanSwap ( x,
 ) 
Value:
{ \
  if ((x) != (y)) \
    { \
      (x)+=(y); \
      (y)=(x)-(y); \
      (x)=(x)-(y); \
    } \
}

Referenced by GaussJordanElimination().


Function Documentation

MagickExport double** AcquireMagickMatrix ( const size_t  number_rows,
const size_t  size 
)
MagickExport MatrixInfo* AcquireMatrixInfo ( const size_t  columns,
const size_t  rows,
const size_t  stride,
ExceptionInfo exception 
)
MagickExport MatrixInfo* DestroyMatrixInfo ( MatrixInfo matrix_info  ) 
static ssize_t EdgeX ( const ssize_t  x,
const size_t  columns 
) [inline, static]

Referenced by GetMatrixElement().

static ssize_t EdgeY ( const ssize_t  y,
const size_t  rows 
) [inline, static]

Referenced by GetMatrixElement().

MagickPrivate MagickBooleanType GaussJordanElimination ( double **  matrix,
double **  vectors,
const size_t  rank,
const size_t  number_vectors 
)
MagickExport size_t GetMatrixColumns ( const MatrixInfo matrix_info  ) 
MagickExport MagickBooleanType GetMatrixElement ( const MatrixInfo matrix_info,
const ssize_t  x,
const ssize_t  y,
void *  value 
)
MagickExport size_t GetMatrixRows ( const MatrixInfo matrix_info  ) 
MagickPrivate void LeastSquaresAddTerms ( double **  matrix,
double **  vectors,
const double *  terms,
const double *  results,
const size_t  rank,
const size_t  number_vectors 
)

Referenced by GenerateCoefficients().

MagickExport Image* MatrixToImage ( const MatrixInfo matrix_info,
ExceptionInfo exception 
)
MagickExport MagickBooleanType NullMatrix ( MatrixInfo matrix_info  ) 
static MagickOffsetType ReadMatrixElements ( const MatrixInfo *magick_restrict  matrix_info,
const MagickOffsetType  offset,
const MagickSizeType  length,
unsigned char *magick_restrict  buffer 
) [inline, static]
MagickExport double** RelinquishMagickMatrix ( double **  matrix,
const size_t  number_rows 
)
MagickExport MagickBooleanType SetMatrixElement ( const MatrixInfo matrix_info,
const ssize_t  x,
const ssize_t  y,
const void *  value 
)
static MagickBooleanType SetMatrixExtent ( MatrixInfo *magick_restrict  matrix_info,
MagickSizeType  length 
) [static]
static MagickOffsetType WriteMatrixElements ( const MatrixInfo *magick_restrict  matrix_info,
const MagickOffsetType  offset,
const MagickSizeType  length,
const unsigned char *magick_restrict  buffer 
) [inline, static]

Generated on 28 Jan 2020 for MagickCore by  doxygen 1.6.1