Logo Search packages:      
Sourcecode: inkscape version File versions

NR Namespace Reference


Detailed Description

Implement NR functions and methods


Classes

class  ConvexHull
class  DistantLight
class  Eigen
class  Filter
class  FilterBlend
class  FilterColorMatrix
class  FilterComponentTransfer
class  FilterComposite
class  FilterConvolveMatrix
class  FilterDiffuseLighting
class  FilterDisplacementMap
class  FilterFlood
class  FilterGaussian
class  FilterImage
class  FilterMerge
class  FilterMorphology
class  FilterOffset
class  FilterPrimitive
class  FilterSlot
class  FilterSpecularLighting
class  FilterTile
class  FilterTurbulence
class  FilterUnits
class  IPoint
class  IRect
class  IsNothing
class  Matrix
class  Maybe
class  Maybe< T & >
class  MaybeStorage
class  MaybeStorage< Rect >
struct  Nothing
class  Point
 Cartesian point. More...
class  PointLight
class  Rect
struct  RGBA
class  rotate
class  scale
class  SpotLight
struct  StitchInfo
class  translate

Typedefs

typedef double Coord
typedef FilterPrimitive *(* FilterConstructor )()
typedef gdouble Fvector [3]
typedef gint32 ICoord

Enumerations

enum  Dim2 { X = 0, Y }
enum  FilterBlendMode {
  BLEND_NORMAL, BLEND_MULTIPLY, BLEND_SCREEN, BLEND_DARKEN,
  BLEND_LIGHTEN, BLEND_ENDMODE
}
enum  FilterColorMatrixType {
  COLORMATRIX_MATRIX, COLORMATRIX_SATURATE, COLORMATRIX_HUEROTATE, COLORMATRIX_LUMINANCETOALPHA,
  COLORMATRIX_ENDTYPE
}
enum  FilterComponentTransferType {
  COMPONENTTRANSFER_TYPE_IDENTITY, COMPONENTTRANSFER_TYPE_TABLE, COMPONENTTRANSFER_TYPE_DISCRETE, COMPONENTTRANSFER_TYPE_LINEAR,
  COMPONENTTRANSFER_TYPE_GAMMA, COMPONENTTRANSFER_TYPE_ERROR
}
enum  FilterConvolveMatrixEdgeMode { CONVOLVEMATRIX_EDGEMODE_DUPLICATE, CONVOLVEMATRIX_EDGEMODE_WRAP, CONVOLVEMATRIX_EDGEMODE_NONE, CONVOLVEMATRIX_EDGEMODE_ENDTYPE }
enum  FilterMorphologyOperator { MORPHOLOGY_OPERATOR_ERODE, MORPHOLOGY_OPERATOR_DILATE, MORPHOLOGY_OPERATOR_END }
enum  FilterPrimitiveType {
  NR_FILTER_BLEND, NR_FILTER_COLORMATRIX, NR_FILTER_COMPONENTTRANSFER, NR_FILTER_COMPOSITE,
  NR_FILTER_CONVOLVEMATRIX, NR_FILTER_DIFFUSELIGHTING, NR_FILTER_DISPLACEMENTMAP, NR_FILTER_FLOOD,
  NR_FILTER_GAUSSIANBLUR, NR_FILTER_IMAGE, NR_FILTER_MERGE, NR_FILTER_MORPHOLOGY,
  NR_FILTER_OFFSET, NR_FILTER_SPECULARLIGHTING, NR_FILTER_TILE, NR_FILTER_TURBULENCE,
  NR_FILTER_ENDPRIMITIVETYPE
}
enum  FilterSlotType {
  NR_FILTER_SLOT_NOT_SET = -1, NR_FILTER_SOURCEGRAPHIC = -2, NR_FILTER_SOURCEALPHA = -3, NR_FILTER_BACKGROUNDIMAGE = -4,
  NR_FILTER_BACKGROUNDALPHA = -5, NR_FILTER_FILLPAINT = -6, NR_FILTER_STROKEPAINT = -7, NR_FILTER_UNNAMED_SLOT = -8
}
enum  FilterTraits { TRAIT_ANYTHING = 0, TRAIT_PARALLER = 1 }
enum  FilterTurbulenceType { TURBULENCE_FRACTALNOISE, TURBULENCE_TURBULENCE, TURBULENCE_ENDTYPE }
enum  LightComponent { LIGHT_RED = 0, LIGHT_GREEN, LIGHT_BLUE }
enum  LightType { NO_LIGHT = 0, DISTANT_LIGHT, POINT_LIGHT, SPOT_LIGHT }

Functions

 __attribute__ ((const)) inline static int sampley(unsigned const char a
static void _check_index (NRPixBlock const *const pb, int const location, int const line)
static int _effect_area_scr (double const deviation)
static int _effect_subsample_step_log2 (double const deviation, int const quality)
static void _make_kernel (FIRValue *const kernel, double const deviation)
Point abs (Point const &b)
void assert_close (Matrix const &a, Matrix const &b)
NR::Coord atan2 (Point const p)
void blend_darken (unsigned char *r, unsigned char const *a, unsigned char const *b)
void blend_lighten (unsigned char *r, unsigned char const *a, unsigned char const *b)
void blend_multiply (unsigned char *r, unsigned char const *a, unsigned char const *b)
void blend_normal (unsigned char *r, unsigned char const *a, unsigned char const *b)
void blend_screen (unsigned char *r, unsigned char const *a, unsigned char const *b)
static void calcFilter (double const sigma, double b[N])
template<unsigned int SIZE>
static void calcTriggsSdikaInitialization (double const M[N *N], IIRValue const uold[N][SIZE], IIRValue const uplus[SIZE], IIRValue const vplus[SIZE], IIRValue const alpha, IIRValue vold[N][SIZE])
static void calcTriggsSdikaM (double const b[N], double M[N *N])
int clamp (int const val)
int clamp3 (int const val)
int clamp_alpha (int const val, int const alpha)
void compute_surface_normal (Fvector &N, gdouble ss, NRPixBlock *in, int i, int j, int dx, int dy)
void convert_coord (gdouble &x, gdouble &y, gdouble &z, Matrix const &trans)
Coord cross (Point const &a, Point const &b)
Coord distance (Point const &a, Point const &b)
Coord dot (Point const &a, Point const &b)
template<typename PT, unsigned int PC>
static void downsample (PT *const dst, int const dstr1, int const dstr2, int const dn1, int const dn2, PT const *const src, int const sstr1, int const sstr2, int const sn1, int const sn2, int const step1_l2, int const step2_l2)
Matrix elliptic_quadratic_form (Matrix const &m)
Rect expand (Rect const &r, NR::Point by)
Rect expand (Rect const &r, double by)
double expansion (Matrix const &m)
template<typename PT, unsigned int PC>
static void filter2D_FIR (PT *const dst, int const dstr1, int const dstr2, PT const *const src, int const sstr1, int const sstr2, int const n1, int const n2, FIRValue const *const kernel, int const scr_len)
template<typename PT, unsigned int PC, bool PREMULTIPLIED_ALPHA>
static void filter2D_IIR (PT *const dest, int const dstr1, int const dstr2, PT const *const src, int const sstr1, int const sstr2, int const n1, int const n2, IIRValue const b[N+1], double const M[N *N], IIRValue *const tmpdata)
NRPixBlockfilter_get_alpha (NRPixBlock *src)
Matrix from_basis (const Point x_basis, const Point y_basis, const Point offset=Point(0, 0))
int get_carac (int i, int len, int delta)
translate get_translation (Matrix const &m)
Matrix identity ()
static bool inside_area (int px, int py, int w, int h)
Maybe< Rectintersection (Maybe< Rect > const &a, Maybe< Rect > const &b)
bool is_unit_vector (Point const &p)
bool is_zero (Point const &p)
Coord L1 (Point const &p)
Coord L2 (Point const &p)
Point Lerp (double const t, Point const a, Point const b)
NR::Coord LInfty (Point const &p)
bool matrix_equalp (Matrix const &m0, Matrix const &m1, NR::Coord const epsilon)
void matrix_print (const gchar *say, Matrix const &m)
gdouble norm (const Fvector &v)
void normalize_vector (Fvector &v)
void normalized_sum (Fvector &r, const Fvector &a, const Fvector &b)
bool operator!= (translate const &a, translate const &b)
bool operator!= (Point const &a, Point const &b)
bool operator!= (Matrix const &a, Matrix const &b)
Point operator* (Point const &v, translate const &t)
translate operator* (translate const &a, translate const &b)
Matrix operator* (translate const &t, Matrix const &m)
scale operator* (scale const &a, scale const &b)
Point operator* (Point const &p, scale const &s)
rotate operator* (rotate const &a, rotate const &b)
Point operator* (Point const &v, rotate const &r)
Point operator* (double const s, Point const &b)
Point operator* (Point const &v, Matrix const &m)
Matrix operator* (Matrix const &m, translate const &t)
Matrix operator* (Matrix const &a, NRMatrix const &b)
Matrix operator* (Matrix const &a, Matrix const &b)
Point operator+ (Point const &a, Point const &b)
Point operator- (Point const &a)
Point operator- (Point const &a, Point const &b)
scale operator/ (scale const &numer, scale const &denom)
rotate operator/ (rotate const &numer, rotate const &denom)
Point operator/ (Point const &b, double const d)
std::ostream & operator<< (std::ostream &out_file, NR::Rect const &in_rect)
std::ostream & operator<< (std::ostream &out_file, const NR::Point &in_pnt)
std::ostream & operator<< (std::ostream &out_file, const NR::Matrix &m)
bool operator== (translate const &a, translate const &b)
bool operator== (Point const &a, Point const &b)
bool operator== (Matrix const &a, Matrix const &b)
Point operator^ (Point const &a, Point const &b)
template<void(*)(unsigned char *cr, unsigned char const *ca, unsigned char const *cb) blend>
void pixops_mix (NRPixBlock &out, NRPixBlock &in1, NRPixBlock &in2)
bool point_equalp (Point const &a, Point const &b, double const eps)
Point rot90 (Point const &p)
gdouble scalar_product (const Fvector &a, const Fvector &b)
void scale_bicubic (NRPixBlock *to, NRPixBlock *from)
Matrix transform (Matrix const &m)
void transform_bicubic (NRPixBlock *to, NRPixBlock *from, Matrix &trans)
bool transform_equalp (Matrix const &m0, Matrix const &m1, NR::Coord const epsilon)
void transform_nearest (NRPixBlock *to, NRPixBlock *from, Matrix &trans)
bool translate_equalp (Matrix const &m0, Matrix const &m1, NR::Coord const epsilon)
Maybe< Rectunion_bounds (Maybe< Rect > const &a, Maybe< Rect > const &b)
Rect union_bounds (Rect const &a, Maybe< Rect > const &b)
Rect union_bounds (Maybe< Rect > const &a, Rect const &b)
Rect union_bounds (Rect const &a, Rect const &b)
Point unit_vector (Point const &a)
template<typename PT, unsigned int PC>
static void upsample (PT *const dst, int const dstr1, int const dstr2, unsigned int const dn1, unsigned int const dn2, PT const *const src, int const sstr1, int const sstr2, unsigned int const sn1, unsigned int const sn2, unsigned int const step1_l2, unsigned int const step2_l2)

Variables

static FilterConstructor _constructor [NR_FILTER_ENDPRIMITIVETYPE]
unsigned const char b
unsigned const char unsigned
const char 
c
unsigned const char unsigned
const char unsigned const char 
d
static const Fvector EYE_VECTOR = {0, 0, 1}
gdouble FACTOR_X [3][3]
signed char K_X [3][3][3][3]


Generated by  Doxygen 1.6.0   Back to index