Lynkeos
Macros
LynkeosStandardImageBufferAdditions.h File Reference

Application internal definitions for the image buffer class. More...

This graph shows which files directly or indirectly include this file:

Macros

#define colorValue(buf, x, y, c)   (((REAL*)(buf)->_data)[((y)+(c)*(buf)->_h)*(buf)->_padw+(x)])
 Access to one color component of a pixel. More...
 
#define redValue(s, x, y)   colorValue(s,x,y,RED_PLANE)
 Acces the red value of a pixel.
 
#define greenValue(s, x, y)   colorValue(s,x,y,GREEN_PLANE)
 Acces the green value of a pixel.
 
#define blueValue(s, x, y)   colorValue(s,x,y,BLUE_PLANE)
 Acces the blue value of a pixel.
 
#define FFTW_PLAN_WITH_NTHREADS   fftwf_plan_with_nthreads
 Prepare N threads for FFTW (float)
 
#define colorComplexValue(buf, x, y, c)   (((COMPLEX*)(buf)->_data)[((y)+(c)*(buf)->_h)*(buf)->_spadw+(x)])
 Access to the complex value of a pixel in the spectrum. More...
 

Detailed Description

Application internal definitions for the image buffer class.

Macro Definition Documentation

#define colorComplexValue (   buf,
  x,
  y,
 
)    (((COMPLEX*)(buf)->_data)[((y)+(c)*(buf)->_h)*(buf)->_spadw+(x)])

Access to the complex value of a pixel in the spectrum.

This method is provided as a macro for speed purpose.

Referenced by LynkeosFourierBuffer::conjugate, filterImageForAnalysis(), and LynkeosFourierBuffer::normalize.

#define colorValue (   buf,
  x,
  y,
 
)    (((REAL*)(buf)->_data)[((y)+(c)*(buf)->_h)*(buf)->_padw+(x)])

Access to one color component of a pixel.

This method is implemented as a macro for speed purpose

Parameters
bufAn instance of MyImageBuffer
xPixel's x coordinate
yPixel's y coordinate
cColor plane
Returns
The access for this pixel (it can be used as an lvalue)

Referenced by corelation_peak(), LynkeosStandardImageBuffer::extractSample:atX:Y:withWidth:height:withPlanes:lineWidth:, LynkeosStandardImageBuffer::getMinLevel:maxLevel:, LynkeosFourierBuffer::inverseTransform, LynkeosStandardImageBuffer(Private)::stackLRGBfromImage:, LynkeosStandardImageBuffer(Private)::stackPlane:fromImage:, and LynkeosStandardImageBuffer::substract:.