PICCANTE
0.4
The hottest HDR imaging library!
|
Typedefs | |
typedef unsigned int | uint |
typedef unsigned char | uchar |
typedef uint * | puint |
typedef uchar * | puchar |
typedef Array< float > | Arrayf |
Arrayf. More... | |
typedef Array< int > | Arrayi |
Arrayi. More... | |
typedef Array< unsigned int > | Arrayui |
Arrayui. More... | |
typedef std::vector< std::string > | StringVec |
StringVec is an std::vector of std::string. More... | |
typedef std::vector< int > | IntCoord |
IntCoord. More... | |
typedef IndexedArray< float > | IndexedArrayf |
typedef IndexedArray< int > | IndexedArrayi |
typedef IndexedArray< unsigned int > | IndexedArrayui |
typedef std::vector< Image * > | ImageVec |
ImageVec an std::vector of pic::Image. More... | |
typedef std::vector< ImageGL * > | ImageGLVec |
ImageGLVec an std::vector of pic::ImageGL. More... | |
typedef std::vector< BufferOpGL * > | BufferOperatorsGL |
typedef Vec< 2, int > | Vec2i |
Vec2i. More... | |
typedef Vec< 3, int > | Vec3i |
Vec3i. More... | |
typedef Vec< 4, int > | Vec4i |
Vec4i. More... | |
typedef Vec< 2, float > | Vec2f |
Vec2f. More... | |
typedef Vec< 3, float > | Vec3f |
Vec3f. More... | |
typedef std::vector< ReduxGL * > | ReduxOperatorsGL |
Enumerations | |
enum | LDR_type { LT_NOR, LT_NOR_GAMMA, LT_LDR, LT_NONE } |
The LDR_type enum. More... | |
enum | LABEL_IO_EXTENSION { IO_TMP, IO_PFM, IO_HDR, IO_EXR, IO_VOL, IO_BMP, IO_PPM, IO_TGA, IO_JPG, IO_PNG, IO_PGM, IO_NULL } |
enum | VALUE_SPACE { VS_LDR, VS_LIN, VS_LOG_2, VS_LOG_E, VS_LOG_10 } |
enum | LUMINANCE_TYPE { LT_CIE_LUMINANCE, LT_LUMA, LT_WARD_LUMINANCE, LT_MEAN } |
enum | BOGL { BOGL_ADD, BOGL_SUB, BOGL_MUL, BOGL_DIV, BOGL_ADD_CONST, BOGL_SUB_CONST, BOGL_MUL_CONST, BOGL_DIV_CONST, BOGL_ADD_S, BOGL_SUB_S, BOGL_MUL_S, BOGL_DIV_S, BOGL_CLAMP, BOGL_ID, BOGL_ID_CONST } |
enum | SAMPLER_TYPE { ST_BRIDSON, ST_DARTTHROWING, ST_PATTERN, ST_MONTECARLO, ST_MONTECARLO_S } |
enum | BF_TYPE { BF_CLASSIC, BF_CROSS, BF_BRUSH } |
enum | REDGL { REDGL_MIN, REDGL_MAX, REDGL_SUM, REDGL_MEAN, REDGL_LOG_MEAN } |
enum | IMAGESTORE { IMG_GPU_CPU, IMG_CPU_GPU, IMG_CPU, IMG_GPU, IMG_NULL } |
Functions | |
template<typename T > | |
PIC_INLINE bool | isnan (T value) |
isnan is it a NaN? More... | |
template<typename T > | |
PIC_INLINE bool | isinf (T value) |
isinf is it a Inf value? More... | |
PIC_INLINE bool | equalf (float a, float b) |
equalf checks if two float values are the same or not. More... | |
PIC_INLINE float | getRandombase () |
Randombase returns a number in [0, 1] based on rand(). More... | |
PIC_INLINE float | getRandom (unsigned int n) |
Random returns a number in [0, 2^32 - 1] to a float in [0, 1]. More... | |
PIC_INLINE int | getRandomInt (int n, int a, int b) |
getRandomInt More... | |
PIC_INLINE float | sFunction (float x) |
sFunction evaluates a cubic s-function. More... | |
PIC_INLINE float | sCurve5 (float x) |
sCurve5 evaluates a quintic S-Shape: 6x^5-15x^4+10x^3 More... | |
PIC_INLINE float | square (float x) |
Square applies square function to a value. More... | |
PIC_INLINE float | sqrtf_s (float x) |
sqrtf_s More... | |
template<class T > | |
PIC_INLINE T | Clamp (T x, T a, T b) |
Clamp clamps a value, x, in the bound [a,b]. More... | |
PIC_INLINE long | lround (double x) |
lround rounds double numbers properly. More... | |
PIC_INLINE float | lround (float x) |
lround rounds float numbers properly. More... | |
PIC_INLINE float | lerp (float t, float x0, float x1) |
lerp evaluates linear interpolation More... | |
PIC_INLINE float | SmoothStep (float a, float b, float value) |
SmoothStep smoothes a value from a to b using a cube S-Shape. More... | |
float | Deg2Rad (float deg) |
Deg2Rad converts angles expressed in degrees into angles expressed in radians. More... | |
PIC_INLINE float | Rad2Deg (float rad) |
Rad2Deg converts angles expressed in radians into angles expressed in degrees. More... | |
PIC_INLINE int | log2 (int n) |
log2 computes logarithm in base 2 for integers. More... | |
PIC_INLINE int | pow2 (int n) |
pow2 computes 2^n. More... | |
PIC_INLINE float | log10PlusOne (float x) |
logf10PlusOne computes log10 of a value plus 1. More... | |
PIC_INLINE float | expfMinusOne (float x) |
expMinusOne More... | |
PIC_INLINE float | log10fPlusEpsilon (float x) |
log10fPlusEpsilon More... | |
PIC_INLINE float | powf10fMinusEpsilon (float x) |
powf10fMinusEpsilon More... | |
PIC_INLINE float | log2f (float x) |
log2f logarithm in base 2 for floating point More... | |
PIC_INLINE double | log2 (double x) |
log2 More... | |
PIC_INLINE float | log2fPlusEpsilon (float x) |
log2fPlusEpsilon More... | |
PIC_INLINE float | pow2f (float x) |
pow2f More... | |
PIC_INLINE int | powint (int x, int b) |
powint computes power function for integer values. More... | |
PIC_INLINE void | getRandomPermutation (std::mt19937 &m, unsigned int *perm, unsigned int nPerm, unsigned int n) |
getRandomPermutation computes a random permutation. More... | |
PIC_INLINE float | normalDistribution (float x, float mu=0.0f, float sigma=1.0f) |
normalDistribution More... | |
float | normalCDF (float x, float mu, float sigma) |
normalCDF More... | |
PIC_INLINE float | betaFunction (float A, float B, float step=1e-4) |
betaFunction More... | |
PIC_INLINE float | betaPDFwithBeta (float x, float A, float B, float betaAB) |
betaPDFwithBeta More... | |
PIC_INLINE float | betaPDF (float x, float A, float B) |
betaPDF More... | |
PIC_INLINE float | sigmoid (float x) |
sigmoid More... | |
PIC_INLINE float | sigmoidInv (float x) |
sigmoidInv More... | |
PIC_INLINE float | simple8bitWithGamma (float x) |
simple8bitWithGamma More... | |
template<class T > | |
void | filterInliers (std::vector< T > &vec, std::vector< unsigned int > &inliers, std::vector< T > &vecOut) |
filterInliers More... | |
template<class T > | |
void | stdVectorClear (std::vector< T *> &vec) |
stdVectorClear More... | |
template<class T > | |
void | stdVectorArrayClear (std::vector< T *> &vec) |
stdVectorArrayClear More... | |
template<class T > | |
void | setToANullVector (std::vector< T * > &vec, unsigned int n) |
setToANullVector More... | |
template<class T > | |
T * | releasePtr (T *data) |
release More... | |
template<class T > | |
T * | delete_s (T *data) |
delete_s More... | |
template<class T > | |
T * | delete_vec_s (T *data) |
delete_vec_s More... | |
PIC_INLINE int | timeGetTime () |
std::string | stdStringRep (std::string str, std::string strSub, std::string strRep) |
stdStringRep replaces strSub in str with strRep just once. More... | |
std::string | stdStringRepAll (std::string str, std::string strSub, std::string strRep) |
stdStringRepAll replaces all strSub in str with strRep. More... | |
template<class T > | |
std::string | fromNumberToString (T num) |
fromNumberToString converts a number into a string. More... | |
char | getSeparatorChar (std::string path) |
getSeparatorChar returns the folder separator in path as a char. More... | |
std::string | removeExtension (std::string name) |
RemoveExtension removes the extension of a string. More... | |
std::string | removeLocalPath (std::string name) |
removeLocalPath removes the local path of a string. More... | |
std::string | getFileNameOnly (std::string name) |
getFileNameOnly More... | |
std::string | getExtension (std::string name) |
getExtension gets the extension of a file name. More... | |
std::string | addSuffix (std::string name, std::string suffix) |
addSuffix adds a suffix to a file name. More... | |
std::string | replaceExtension (std::string nameOut, std::string fmtIn, std::string fmtOut) |
replaceExtension changes .format in a file name. More... | |
int | countSubString (std::string str, std::string subStr) |
countSubString counts how many subStr are in str. More... | |
std::string | getLocaDirectory (std::string path) |
getLocaDirectory gets local path. More... | |
std::string | getSeparator (std::string path) |
getSeparator returns the folder separator in path as a string More... | |
std::string | getFolderName (std::string path) |
getFolderName gets the folder name from the path. More... | |
std::string | getFileName (std::string path) |
getFileName gets the file name. More... | |
void | parseStringToStdVector (std::string str, char delim, StringVec *str_vec) |
parseStringToStdVector More... | |
std::string | genBilString (std::string type, float sigma_s, float sigma_r) |
genBilString More... | |
std::string | fromFileToStdString (std::string nameFile) |
fromFileToStdString writes a file into a std::string. More... | |
bool | checkAbsolutePath (std::string path) |
checkAbsolutePath checks if the path is absolute or not. More... | |
char * | fromStdStringToChar (std::string str) |
fromStdStringToChar converts from a std::string to a char*. More... | |
std::string | checkPath (std::string name) |
checkPath More... | |
std::string | adjustPath (std::string nameFile, std::string pathFolder) |
adjustPath modifies the path if it is not global. More... | |
std::string | removeInitialSpaces (char name[]) |
removeInitialSpaces removes spaces at the beginning of a string. More... | |
PIC_INLINE float | estimateAverageLuminance (float shutter_speed, float aperture_value=1.0f, float iso_value=1.0f, float K_value=12.5f) |
estimateAverageLuminance estimates the average luminance of the shot. More... | |
PIC_INLINE bool | checkNormalized (const float *data, int size, float delta=1e-6f) |
checkNormalized checks if data is in [0,1]. More... | |
PIC_INLINE float * | convertLDR2HDR (unsigned char *dataIn, float *dataOut, int size, LDR_type type, float gamma=2.2f) |
convertLDR2HDR converts a buffer of unsigned char into float. More... | |
PIC_INLINE unsigned char * | convertHDR2LDR (const float *dataIn, unsigned char *dataOut, int size, LDR_type type, float gamma=2.2f) |
convertHDR2LDR converts a buffer of float into unsigned char. More... | |
int | BitmapPadding (int bpp, int width) |
BitmapPadding (SYSTEM: X POS Y POS). More... | |
PIC_INLINE unsigned char * | ReadBMP (std::string nameFile, unsigned char *data, int &width, int &height, int &channels) |
ReadBMP reads an image as .bmp file. More... | |
PIC_INLINE bool | WriteBMP (std::string nameFile, const unsigned char *data, int width, int height, int channels) |
WriteBMP writes an image as a .bmp file. More... | |
PIC_INLINE float * | ReadEXR (std::string nameFile, float *data, int &width, int &height, int &channels) |
PIC_INLINE bool | WriteEXR (std::string nameFile, float *data, int width, int height, int channels=3) |
WriteEXR. More... | |
PIC_INLINE void | fromFloatToRGBE (float *colFloat, unsigned char *colRGBE) |
fromFloatToRGBE More... | |
PIC_INLINE void | fromSingleFloatToRGBE (float *colFloat, unsigned char *colRGBE) |
fromSingleFloatToRGBE More... | |
PIC_INLINE void | fromRGBEToFloat (unsigned char *colRGBE, float *colFloat) |
fromRGBEToFloat More... | |
PIC_INLINE float * | ReadHDR (std::string nameFile, float *data, int &width, int &height) |
ReadHDR reads a .hdr/.pic file. More... | |
PIC_INLINE void | WriteLineHDR (FILE *file, unsigned char *buffer_line, int width) |
WriteLineHDR writes a scanline of an image using RLE and RGBE encoding. More... | |
PIC_INLINE bool | WriteHDR (std::string nameFile, float *data, int width, int height, int channels, float appliedExposure=1.0f, bool bRLE=true) |
WriteHDR writes a .hdr/.pic file. More... | |
PIC_INLINE bool | WriteHDRBlock (std::string nameFile, float *buffer_line, int width, int height, int channels, int blockID, int nBlocks) |
WriteHDRBlock writes a .hdr file. More... | |
PIC_INLINE float | convertFloatEndianess (float value) |
convertFloatEndianess converts a float from little-endian to big-endian or viceversa. More... | |
PIC_INLINE float * | ReadPFM (std::string nameFile, float *data, int &width, int &height, int &channel) |
ReadPFM loads a portable float map from a file. More... | |
PIC_INLINE bool | WritePFM (std::string nameFile, float *data, int width, int height, int channels=3) |
WritePFM writes an HDR image in the portable float map format into a file. More... | |
PIC_INLINE unsigned char * | ReadPPM (std::string nameFile, unsigned char *data, int &width, int &height, int &channels) |
ReadPPM reads an .ppm file. More... | |
PIC_INLINE bool | WritePPM (std::string nameFile, const unsigned char *data, int width, int height, int channels) |
WritePPM writes an .ppm file. More... | |
PIC_INLINE unsigned char * | ReadPGM (std::string nameFile, unsigned char *data, int &width, int &height, int &channels) |
ReadPGM reads an .ppm file. More... | |
PIC_INLINE bool | WritePGM (std::string nameFile, const unsigned char *data, int width, int height, int channels, bool bAscii=false) |
WritePGM writes an .ppm file. More... | |
PIC_INLINE float * | ReadTMP (std::string nameFile, float *data, int &width, int &height, int &channels, int &frames, bool bHeader=true) |
ReadTMP reads a dump temp file. More... | |
PIC_INLINE bool | WriteTMP (std::string nameFile, float *data, int &width, int &height, int &channels, int &frames, bool bHeader=true) |
WriteTMP writes a dump temp file. More... | |
PIC_INLINE unsigned char * | ReadTGA (std::string nameFile, unsigned char *data, int &width, int &height, int &channels) |
ReadTGA reads an image in the .tga format. More... | |
PIC_INLINE bool | WriteTGA (std::string nameFile, const unsigned char *data, int width, int height, int channels) |
WriteTGA writes an image in the .tga format. More... | |
PIC_INLINE float * | ReadVOL (std::string nameFile, float *data, int &width, int &height, int &depth, int &channels) |
ReadVOL. More... | |
PIC_INLINE bool | WriteVOL (std::string nameFile, float *data, int width, int height, int depth, int channels=3) |
WriteVOL. More... | |
PIC_INLINE unsigned char * | ReadSTB (std::string nameFile, int &width, int &height, int &channels) |
ReadSTB. More... | |
PIC_INLINE bool | WriteSTB (std::string nameFile, unsigned char *data, int width, int height, int channels=3) |
WriteSTB. More... | |
unsigned int | twoByteToValue (unsigned char data[2], bool bMotorola) |
twoByteToValue More... | |
unsigned int | fourByteToValue (unsigned char data[4], bool bMotorola) |
fourByteToValue More... | |
bool | checkTag (unsigned char tag[2], unsigned short tag_r, bool bMotorola) |
checkTag More... | |
int | getTagID (unsigned char tag[2], bool bMotorola) |
getTagID More... | |
int | getBytesForComponents (int value) |
getBytesForComponents More... | |
std::string | readString (FILE *file, int length) |
readString More... | |
std::string | readStringFromUChar (unsigned char *data, int length) |
readStringFromUChar More... | |
float | readUnsignedRational (FILE *file, bool bMotorola) |
readUnsignedRational More... | |
bool | readEXIF (std::string name, EXIFInfo &info) |
readEXIF More... | |
PIC_INLINE LABEL_IO_EXTENSION | getLabelHDRExtension (std::string nameFile) |
getLabelHDRExtension returns the file label given its file name (for HDR images). More... | |
PIC_INLINE LABEL_IO_EXTENSION | getLabelLDRExtension (std::string nameFile) |
getLabelHDRExtension returns the file label given its file name (for LDR images). More... | |
PIC_INLINE ImageVec | Single (Image *img) |
Single creates an std::vector which contains img; this is for filters input. More... | |
PIC_INLINE ImageVec | Double (Image *img1, Image *img2) |
Double creates an std::vector which contains img1 and img2; this is for filters input. More... | |
PIC_INLINE ImageVec | Triple (Image *img1, Image *img2, Image *img3) |
Triple creates an std::vector which contains img1, img2, and img3; this is for filters input. More... | |
PIC_INLINE ImageVec | Quad (Image *img1, Image *img2, Image *img3, Image *img4) |
Triple creates an std::vector which contains img1, img2, img3, and img4; this is for filters input. More... | |
PIC_INLINE void | ImaveVecSortByExposureTime (ImageVec &stack) |
ImaveVecSortByExposureTime. More... | |
PIC_INLINE void | ImaveVecGetExposureTimesAsArray (ImageVec &stack, std::vector< float > &output, bool bLog) |
ImaveVecGetExposureTimesAsArray. More... | |
PIC_INLINE bool | ImageVecCheckSimilarType (ImageVec &stack) |
ImageVecCheckSimilarType. More... | |
PIC_INLINE bool | ImageVecCheck (ImageVec &imgIn, int minInputImages) |
ImageVecCheck. More... | |
PIC_INLINE ImageGLVec | SingleGL (ImageGL *img) |
SingleGL creates a single for filters input. More... | |
PIC_INLINE ImageGLVec | DoubleGL (ImageGL *img1, ImageGL *img2) |
DoubleGL creates a couple for filters input. More... | |
PIC_INLINE ImageGLVec | TripleGL (ImageGL *img1, ImageGL *img2, ImageGL *img3) |
TripleGL creates a triple for filters input. More... | |
PIC_INLINE bool | ImageGLVecCheck (ImageGLVec &imgIn, int minInputImages) |
ImageGLVecCheck. More... | |
PIC_INLINE void | getMinMaxFstops (Image *imgIn, int &minFstop, int &maxFstop) |
getMinMaxFstops computes the minimum and maximum f-stop values of an image. More... | |
PIC_INLINE std::vector< float > | getAllExposuresUniform (Image *imgIn) |
getAllExposuresUniform computes all required exposure values for reconstructing the input image using uniform sampling More... | |
PIC_INLINE std::vector< float > | getAllExposures (Image *imgIn) |
getAllExposures computes all required exposure values for reconstructing the input image using histogram sampling More... | |
PIC_INLINE ImageVec | getAllExposuresImages (Image *imgIn, std::vector< float > &fstops, float gamma=2.2f) |
getAllExposuresImages converts an image into a stack of images. More... | |
PIC_INLINE ImageVec | getAllExposuresImages (Image *imgIn, float gamma=2.2f) |
getAllExposuresImages converts an image into a stack of images. More... | |
PIC_INLINE ImageGLVec | getAllExposuresImagesGL (ImageGL *imgIn, float gamma=2.2f) |
getAllExposuresImagesGL converts an HDR image into a stack of LDR images More... | |
template<class Scalar > | |
Scalar | Bilinear (Scalar a, Scalar b, Scalar c, Scalar d, float x, float y) |
Bilinear calculates 2D bilinear interpolation at the point (x,y). More... | |
void | invBilinear (float A, float dx, float dy, float *out) |
invBilinear More... | |
float | Rx (float x) |
Rx evaluates B-spline (cubic). More... | |
float | MitchellNetravali (float x, float B, float C) |
MitchellNetravali. More... | |
float | Bicubic (float x) |
Bicubic. More... | |
float | CatmullRom (float x) |
CatmullRom. More... | |
float | Lanczos (float x, float a) |
Lanczos. More... | |
template<uint N> | |
PIC_INLINE bool | insideVecBBox (const Vec< N, float > &sample) |
insideVecBBox More... | |
template<uint N> | |
PIC_INLINE Vec< N, float > | normalize (Vec< N, float > x) |
template<uint N> | |
PIC_INLINE Vec< N, float > | randomPoint (std::mt19937 *m) |
randomPoint More... | |
template<uint N> | |
void | vecrint (Vec< N, float > &ret) |
template<uint N> | |
PIC_INLINE Vec< N, float > | annulusSampling (std::mt19937 *m, Vec< N, float > center, float radius) |
annulusSampling More... | |
template<uint N> | |
void | vecGamma (Vec< N, float > &ret, float g) |
template<uint N> | |
void | vecSqrt (Vec< N, float > &ret) |
template<uint N> | |
Vec< N, float > | vecValOver (Vec< N, float > &in, float value) |
template<uint N, class T > | |
void | transferFromVecToPlain (std::vector< Vec< N, T > > &in, std::vector< T > &out) |
template<uint N, class T > | |
void | transferFromPlainToVec (std::vector< T > &in, std::vector< Vec< N, T > > &out) |
float | randU () |
randU computes a random number in [0, 1[ using the classic rand(). More... | |
float | PoissonRadius (int nSamples) |
PoissonRadius estimates the radius of a Poisson-disk like distribution using nSmaples. More... | |
template<unsigned int N> | |
PIC_INLINE void | getMonteCarloSamples (std::mt19937 *m, int nSamples, std::vector< float > &samples) |
getMonteCarloSamples More... | |
template<unsigned int N> | |
PIC_INLINE void | getMonteCarloStratifiedSamples (std::mt19937 *m, int nSamples, std::vector< float > &samples) |
getMonteCarloStratifiedSamples More... | |
template<unsigned int N> | |
PIC_INLINE void | getPatternMethodSamples (int nSamples, std::vector< float > &samples) |
getPatternMethodSampler More... | |
template<unsigned int N> | |
void | getDartThrowingSamples (std::mt19937 *m, float radius2, int nSamples, std::vector< float > &samples) |
getDartThrowingSamples More... | |
template<unsigned int N> | |
bool | checkNeighborsBruteForce (std::vector< Vec< N, float > > &samples, Vec< N, float > x, float radius) |
checkNeighborsBruteForce More... | |
template<unsigned int N> | |
void | getBridsonSamples (std::mt19937 *m, float radius, std::vector< float > &samples, int kSamples=30) |
getBridsonSamples More... | |
template<unsigned int N> | |
PIC_INLINE void | ConvertVectorToPlus1 (std::vector< RandomSampler< N > > &rsVec, RandomSampler< N+1 > &rsOut) |
PIC_INLINE void | glGetPrintError () |
glGetPrintError More... | |
PIC_INLINE int | getValueBF (BF_TYPE type) |
getValueBF More... | |
PIC_INLINE std::string | GLSL_BICUBIC () |
GLSL_BICUBIC returns bicubic sample. More... | |
PIC_INLINE std::string | GLSL_TEXTURE_BICUBIC () |
GLSL_TEXTURE_BICUBIC. More... | |
void | getModesGL (int channels, int &mode, int &modeInternalFormat) |
getModesGL More... | |
void | getModesHalfGL (int channels, int &mode, int &modeInternalFormat) |
getModesHalfGL More... | |
void | getModesIntegerGL (int channels, int &mode, int &modeInternalFormat) |
getModesIntegerGL More... | |
int | getChannelsFromInternalFormatGL (int internalFormat) |
getChannelsFromInternalFormatGL returns the number of channels given an internal format. More... | |
PIC_INLINE void | getTextureInformationGL (GLuint texture, GLuint target, int &width, int &height, int &frames, int &channels) |
getTextureInformationGL returns width, height and frames values from a texture with target. More... | |
GLuint | glBeginTimeQuery () |
glBeginTimeQuery More... | |
GLuint64 | glEndTimeQuery (GLuint64 ret) |
glEndTimeQuery More... | |
PIC_INLINE GLuint | generateTexture2DGL (int width, int height, int channels, float *data=NULL, bool mipmap=false) |
generateTexture2DGL More... | |
PIC_INLINE GLuint | generateTextureCubeMapGL (int width, int height, int channels, int frames, float *data=NULL) |
generateTextureCubeMapGL More... | |
PIC_INLINE GLuint | generateTexture3DGL (int width, int height, int channels, int frames, float *data=NULL) |
generateTexture3DGL More... | |
PIC_INLINE GLuint | generateTexture2DArrayGL (int width, int height, int channels, int frames, float *data=NULL) |
generateTexture2DArrayGL More... | |
PIC_INLINE GLuint | generateTexture2DU32GL (int width, int height, int channels, int *data=NULL) |
generateTexture2DU32GL More... | |
PIC_INLINE GLuint | GenerateMask (int width, int height, bool *buffer=NULL, GLuint tex=0, unsigned char *tmpBuffer=NULL, bool mipmap=false) |
GenerateMask creates an opengl mask (a texture) from a buffer of bool values. More... | |
Variables | |
const float | C_LOG_NAT_2 = 0.69314718055994530941723212145818f |
const float | C_INV_LOG_NAT_2 = 1.4426950408889634073599246810019f |
const double | C_INV_LOG_NAT_2_D = 1.4426950408889634073599246810019 |
const float | C_EPSILON = 1e-6f |
const float | C_SQRT_2 = 1.4142135623730950488016887242097f |
const float | C_PI_025 = 0.78539816339744830961566084581988f |
const float | C_PI_05 = 1.5707963267948966192313216916398f |
const float | C_PI = 3.1415926535897932384626433832795f |
const float | C_PI_2 = 6.283185307179586476925286766559f |
const float | C_INV_PI_2 = 0.159154943091895335768883763f |
const float | C_PI_4 = 12.566370614359172953850573533118f |
const float | C_INV_PI_4 = 0.07957747154594766788444188168626f |
const float | C_PI_2_2 = 19.739208802178717237668981999752f |
const float | C_INV_PI = 0.31830988618379067153776526745f |
const float | C_ONE_80_OVER_PI = 57.295779513082320876798154814105f |
const float | C_PI_OVER_ONE_80 = 0.017453292519943295769236907685f |
const float | mtxRGBtoXYZ [] |
const float | mtxXYZtoRGB [] |
const float | POISSON_RHO = 0.75f |
const int | CONST_DARTTHROWING = 5000 |
Note:
typedef Array<float> pic::pic::Arrayf |
Arrayf.
typedef Array<int> pic::pic::Arrayi |
Arrayi.
typedef Array<unsigned int> pic::pic::Arrayui |
Arrayui.
typedef std::vector<BufferOpGL*> pic::pic::BufferOperatorsGL |
typedef std::vector<ImageGL*> pic::pic::ImageGLVec |
ImageGLVec an std::vector of pic::ImageGL.
typedef std::vector<Image *> pic::pic::ImageVec |
ImageVec an std::vector of pic::Image.
typedef IndexedArray<float> pic::pic::IndexedArrayf |
typedef IndexedArray<int> pic::pic::IndexedArrayi |
typedef IndexedArray<unsigned int> pic::pic::IndexedArrayui |
typedef std::vector<int> pic::pic::IntCoord |
IntCoord.
typedef uchar* pic::pic::puchar |
typedef uint* pic::pic::puint |
typedef std::vector<ReduxGL*> pic::pic::ReduxOperatorsGL |
typedef std::vector<std::string > pic::pic::StringVec |
StringVec is an std::vector of std::string.
typedef unsigned char pic::pic::uchar |
typedef unsigned int pic::pic::uint |
typedef Vec<2, float> pic::pic::Vec2f |
Vec2f.
typedef Vec<2, int> pic::pic::Vec2i |
Vec2i.
typedef Vec<3, float> pic::pic::Vec3f |
Vec3f.
typedef Vec<3, int> pic::pic::Vec3i |
Vec3i.
typedef Vec<4, int> pic::pic::Vec4i |
Vec4i.
enum pic::pic::BF_TYPE |
enum pic::pic::BOGL |
enum pic::pic::IMAGESTORE |
enum pic::pic::LDR_type |
enum pic::pic::REDGL |
|
inline |
addSuffix adds a suffix to a file name.
name | |
suffix |
std::string pic::pic::adjustPath | ( | std::string | nameFile, |
std::string | pathFolder | ||
) |
adjustPath modifies the path if it is not global.
nameFile | |
pathFolder |
PIC_INLINE Vec<N, float> pic::pic::annulusSampling | ( | std::mt19937 * | m, |
Vec< N, float > | center, | ||
float | radius | ||
) |
annulusSampling
m | |
center | |
radius |
PIC_INLINE float pic::pic::betaFunction | ( | float | A, |
float | B, | ||
float | step = 1e-4 |
||
) |
betaFunction
A | |
B |
PIC_INLINE float pic::pic::betaPDF | ( | float | x, |
float | A, | ||
float | B | ||
) |
betaPDF
x | |
A | |
B |
PIC_INLINE float pic::pic::betaPDFwithBeta | ( | float | x, |
float | A, | ||
float | B, | ||
float | betaAB | ||
) |
betaPDFwithBeta
x | |
A | |
B | |
betaAB |
|
inline |
Bicubic.
x |
|
inline |
Bilinear calculates 2D bilinear interpolation at the point (x,y).
a | is the NW pixel value. |
b | is the NE pixel value. |
c | is the SW pixel value. |
d | is the SE pixel value. |
x | is the horizontal coordinate. |
y | is the vertical coordinate. |
|
inline |
BitmapPadding (SYSTEM: X POS Y POS).
bpp | |
width |
|
inline |
CatmullRom.
x |
|
inline |
checkAbsolutePath checks if the path is absolute or not.
path |
bool pic::pic::checkNeighborsBruteForce | ( | std::vector< Vec< N, float > > & | samples, |
Vec< N, float > | x, | ||
float | radius | ||
) |
checkNeighborsBruteForce
samples | |
x | |
radius |
PIC_INLINE bool pic::pic::checkNormalized | ( | const float * | data, |
int | size, | ||
float | delta = 1e-6f |
||
) |
checkNormalized checks if data is in [0,1].
data | |
size | |
delta |
|
inline |
checkPath
name |
bool pic::pic::checkTag | ( | unsigned char | tag[2], |
unsigned short | tag_r, | ||
bool | bMotorola | ||
) |
checkTag
tag | |
tag_r | |
bMotorola |
PIC_INLINE T pic::pic::Clamp | ( | T | x, |
T | a, | ||
T | b | ||
) |
Clamp clamps a value, x, in the bound [a,b].
x | |
a | |
b |
PIC_INLINE float pic::pic::convertFloatEndianess | ( | float | value | ) |
convertFloatEndianess converts a float from little-endian to big-endian or viceversa.
value | is the input float to be converted. |
PIC_INLINE unsigned char* pic::pic::convertHDR2LDR | ( | const float * | dataIn, |
unsigned char * | dataOut, | ||
int | size, | ||
LDR_type | type, | ||
float | gamma = 2.2f |
||
) |
convertHDR2LDR converts a buffer of float into unsigned char.
dataIn | |
dataOut | |
size | |
type | |
gamma |
PIC_INLINE float* pic::pic::convertLDR2HDR | ( | unsigned char * | dataIn, |
float * | dataOut, | ||
int | size, | ||
LDR_type | type, | ||
float | gamma = 2.2f |
||
) |
convertLDR2HDR converts a buffer of unsigned char into float.
dataIn | |
dataOut | |
size | |
type | |
gamma |
PIC_INLINE void pic::pic::ConvertVectorToPlus1 | ( | std::vector< RandomSampler< N > > & | rsVec, |
RandomSampler< N+1 > & | rsOut | ||
) |
|
inline |
countSubString counts how many subStr are in str.
str | is the input string. |
subStr | is the substring to count in str. |
|
inline |
Deg2Rad converts angles expressed in degrees into angles expressed in radians.
deg | is a value of an angle expressed in degrees. |
|
inline |
delete_s
data |
|
inline |
delete_vec_s
data |
PIC_INLINE ImageVec pic::pic::Double | ( | Image * | img1, |
Image * | img2 | ||
) |
Double creates an std::vector which contains img1 and img2; this is for filters input.
img1 | is a pointer to a pic::Image |
img2 | is a pointer to a pic::Image |
PIC_INLINE ImageGLVec pic::pic::DoubleGL | ( | ImageGL * | img1, |
ImageGL * | img2 | ||
) |
DoubleGL creates a couple for filters input.
img1 | |
img2 |
PIC_INLINE bool pic::pic::equalf | ( | float | a, |
float | b | ||
) |
equalf checks if two float values are the same or not.
a | is the first value to be checked. |
b | is the second value to be checked. |
PIC_INLINE float pic::pic::estimateAverageLuminance | ( | float | shutter_speed, |
float | aperture_value = 1.0f , |
||
float | iso_value = 1.0f , |
||
float | K_value = 12.5f |
||
) |
estimateAverageLuminance estimates the average luminance of the shot.
shutter_speed | is the shutter speed of the camera |
aperture_value | is the aperture value of the camera |
iso_value | is the ISO value of the camera |
K_value | is a value in [10.6, 13.4] depending on the camera |
PIC_INLINE float pic::pic::expfMinusOne | ( | float | x | ) |
expMinusOne
x |
|
inline |
filterInliers
vec | |
inliers | |
vecOut |
unsigned int pic::pic::fourByteToValue | ( | unsigned char | data[4], |
bool | bMotorola | ||
) |
fourByteToValue
data | |
bMotorola |
|
inline |
fromFileToStdString writes a file into a std::string.
nameFile |
PIC_INLINE void pic::pic::fromFloatToRGBE | ( | float * | colFloat, |
unsigned char * | colRGBE | ||
) |
fromFloatToRGBE
colFloat | |
colRGBE |
|
inline |
fromNumberToString converts a number into a string.
num | is an input number. |
PIC_INLINE void pic::pic::fromRGBEToFloat | ( | unsigned char * | colRGBE, |
float * | colFloat | ||
) |
fromRGBEToFloat
colRGBE | |
colFloat |
PIC_INLINE void pic::pic::fromSingleFloatToRGBE | ( | float * | colFloat, |
unsigned char * | colRGBE | ||
) |
fromSingleFloatToRGBE
colFloat | |
colRGBE |
|
inline |
fromStdStringToChar converts from a std::string to a char*.
str |
|
inline |
genBilString
type | |
sigma_s | |
sigma_r |
PIC_INLINE GLuint pic::pic::GenerateMask | ( | int | width, |
int | height, | ||
bool * | buffer = NULL , |
||
GLuint | tex = 0 , |
||
unsigned char * | tmpBuffer = NULL , |
||
bool | mipmap = false |
||
) |
GenerateMask creates an opengl mask (a texture) from a buffer of bool values.
width | |
height | |
buffer | |
tex | |
tmpBuffer | |
mipmap |
PIC_INLINE GLuint pic::pic::generateTexture2DArrayGL | ( | int | width, |
int | height, | ||
int | channels, | ||
int | frames, | ||
float * | data = NULL |
||
) |
generateTexture2DArrayGL
width | |
height | |
channels | |
frames | |
data |
PIC_INLINE GLuint pic::pic::generateTexture2DGL | ( | int | width, |
int | height, | ||
int | channels, | ||
float * | data = NULL , |
||
bool | mipmap = false |
||
) |
generateTexture2DGL
width | |
height | |
channels | |
data | |
mipmap |
PIC_INLINE GLuint pic::pic::generateTexture2DU32GL | ( | int | width, |
int | height, | ||
int | channels, | ||
int * | data = NULL |
||
) |
generateTexture2DU32GL
width | |
height | |
channels |
PIC_INLINE GLuint pic::pic::generateTexture3DGL | ( | int | width, |
int | height, | ||
int | channels, | ||
int | frames, | ||
float * | data = NULL |
||
) |
generateTexture3DGL
width | |
height | |
channels | |
frames | |
data |
PIC_INLINE GLuint pic::pic::generateTextureCubeMapGL | ( | int | width, |
int | height, | ||
int | channels, | ||
int | frames, | ||
float * | data = NULL |
||
) |
generateTextureCubeMapGL
width | |
height | |
channels | |
frames | |
data |
PIC_INLINE std::vector<float> pic::pic::getAllExposures | ( | Image * | imgIn | ) |
getAllExposures computes all required exposure values for reconstructing the input image using histogram sampling
imgIn | is an input image |
PIC_INLINE ImageVec pic::pic::getAllExposuresImages | ( | Image * | imgIn, |
std::vector< float > & | fstops, | ||
float | gamma = 2.2f |
||
) |
getAllExposuresImages converts an image into a stack of images.
imgIn | is an input image. |
fstops | a vector with fstops. |
gamma | is the gamma correction value for the output stack. |
PIC_INLINE ImageVec pic::pic::getAllExposuresImages | ( | Image * | imgIn, |
float | gamma = 2.2f |
||
) |
getAllExposuresImages converts an image into a stack of images.
imgIn | is an input image. |
gamma | is the gamma correction value for the output stack. |
PIC_INLINE ImageGLVec pic::pic::getAllExposuresImagesGL | ( | ImageGL * | imgIn, |
float | gamma = 2.2f |
||
) |
getAllExposuresImagesGL converts an HDR image into a stack of LDR images
imgIn |
PIC_INLINE std::vector<float> pic::pic::getAllExposuresUniform | ( | Image * | imgIn | ) |
getAllExposuresUniform computes all required exposure values for reconstructing the input image using uniform sampling
imgIn | is an input image |
void pic::pic::getBridsonSamples | ( | std::mt19937 * | m, |
float | radius, | ||
std::vector< float > & | samples, | ||
int | kSamples = 30 |
||
) |
getBridsonSamples
m | |
radius | |
samples | |
kSamples |
int pic::pic::getBytesForComponents | ( | int | value | ) |
getBytesForComponents
value |
|
inline |
getChannelsFromInternalFormatGL returns the number of channels given an internal format.
internalFormat | is the OpenGL internal format of a texture. |
void pic::pic::getDartThrowingSamples | ( | std::mt19937 * | m, |
float | radius2, | ||
int | nSamples, | ||
std::vector< float > & | samples | ||
) |
getDartThrowingSamples
m | |
radius2 | |
nSamples | |
samples |
|
inline |
getExtension gets the extension of a file name.
name |
|
inline |
getFileName gets the file name.
path |
|
inline |
getFileNameOnly
name | is the input name with global/local path and extension |
|
inline |
getFolderName gets the folder name from the path.
path |
PIC_INLINE LABEL_IO_EXTENSION pic::pic::getLabelHDRExtension | ( | std::string | nameFile | ) |
getLabelHDRExtension returns the file label given its file name (for HDR images).
nameFile | is a file name. |
PIC_INLINE LABEL_IO_EXTENSION pic::pic::getLabelLDRExtension | ( | std::string | nameFile | ) |
getLabelHDRExtension returns the file label given its file name (for LDR images).
nameFile | is a file name. |
|
inline |
getLocaDirectory gets local path.
path |
PIC_INLINE void pic::pic::getMinMaxFstops | ( | Image * | imgIn, |
int & | minFstop, | ||
int & | maxFstop | ||
) |
getMinMaxFstops computes the minimum and maximum f-stop values of an image.
imgIn | is an image. |
minFstop | is the mininum f-stop of imgIn, output. |
maxFstop | is the maximum f-stop of imgIn, output. |
|
inline |
getModesGL
channels | |
mode | |
modeInternalFormat |
|
inline |
getModesHalfGL
channels | |
mode | |
modeInternalFormat |
|
inline |
getModesIntegerGL
channels | |
mode | |
modeInternalFormat |
PIC_INLINE void pic::pic::getMonteCarloSamples | ( | std::mt19937 * | m, |
int | nSamples, | ||
std::vector< float > & | samples | ||
) |
getMonteCarloSamples
m | |
nSamples | |
samples |
PIC_INLINE void pic::pic::getMonteCarloStratifiedSamples | ( | std::mt19937 * | m, |
int | nSamples, | ||
std::vector< float > & | samples | ||
) |
getMonteCarloStratifiedSamples
m | |
nSamples | |
samples |
PIC_INLINE void pic::pic::getPatternMethodSamples | ( | int | nSamples, |
std::vector< float > & | samples | ||
) |
getPatternMethodSampler
nSamples | |
samples |
PIC_INLINE float pic::pic::getRandom | ( | unsigned int | n | ) |
Random returns a number in [0, 2^32 - 1] to a float in [0, 1].
n | is a 32-bit unsigned integer number. |
PIC_INLINE float pic::pic::getRandombase | ( | ) |
Randombase returns a number in [0, 1] based on rand().
PIC_INLINE int pic::pic::getRandomInt | ( | int | n, |
int | a, | ||
int | b | ||
) |
getRandomInt
n | |
a | |
b |
PIC_INLINE void pic::pic::getRandomPermutation | ( | std::mt19937 & | m, |
unsigned int * | perm, | ||
unsigned int | nPerm, | ||
unsigned int | n | ||
) |
getRandomPermutation computes a random permutation.
m | is a Mersenne Twister random number generator. |
perm | is the array where to store the permutation. |
nPerm | is the size of perm. |
n | is the number of object to permutate. |
|
inline |
getSeparator returns the folder separator in path as a string
path |
|
inline |
getSeparatorChar returns the folder separator in path as a char.
path |
int pic::pic::getTagID | ( | unsigned char | tag[2], |
bool | bMotorola | ||
) |
getTagID
tag | |
bMotorola |
PIC_INLINE void pic::pic::getTextureInformationGL | ( | GLuint | texture, |
GLuint | target, | ||
int & | width, | ||
int & | height, | ||
int & | frames, | ||
int & | channels | ||
) |
getTextureInformationGL returns width, height and frames values from a texture with target.
texture | is the OpenGL texture pointer. |
target | is the OpenGL target of texture. |
width | is the horizontal length in pixel of texture. |
height | is the vertical length in pixel of texture. |
frames | is the number of frames of texture. |
channels | is the number of color channels of texture. |
PIC_INLINE int pic::pic::getValueBF | ( | BF_TYPE | type | ) |
getValueBF
type |
|
inline |
glBeginTimeQuery
|
inline |
glEndTimeQuery
ret |
PIC_INLINE void pic::pic::glGetPrintError | ( | ) |
glGetPrintError
PIC_INLINE std::string pic::pic::GLSL_BICUBIC | ( | ) |
GLSL_BICUBIC returns bicubic sample.
PIC_INLINE std::string pic::pic::GLSL_TEXTURE_BICUBIC | ( | ) |
GLSL_TEXTURE_BICUBIC.
PIC_INLINE bool pic::pic::ImageGLVecCheck | ( | ImageGLVec & | imgIn, |
int | minInputImages | ||
) |
ImageGLVecCheck.
vec | |
minInputImages |
PIC_INLINE bool pic::pic::ImageVecCheck | ( | ImageVec & | imgIn, |
int | minInputImages | ||
) |
ImageVecCheck.
vec | |
minInputImages |
PIC_INLINE bool pic::pic::ImageVecCheckSimilarType | ( | ImageVec & | stack | ) |
ImageVecCheckSimilarType.
stack |
PIC_INLINE void pic::pic::ImaveVecGetExposureTimesAsArray | ( | ImageVec & | stack, |
std::vector< float > & | output, | ||
bool | bLog | ||
) |
ImaveVecGetExposureTimesAsArray.
stack |
PIC_INLINE void pic::pic::ImaveVecSortByExposureTime | ( | ImageVec & | stack | ) |
ImaveVecSortByExposureTime.
stack |
PIC_INLINE bool pic::pic::insideVecBBox | ( | const Vec< N, float > & | sample | ) |
insideVecBBox
sample |
|
inline |
invBilinear
A | |
dx | |
dy | |
out |
PIC_INLINE bool pic::pic::isinf | ( | T | value | ) |
isinf is it a Inf value?
value |
PIC_INLINE bool pic::pic::isnan | ( | T | value | ) |
isnan is it a NaN?
value |
|
inline |
Lanczos.
x | |
a |
PIC_INLINE float pic::pic::lerp | ( | float | t, |
float | x0, | ||
float | x1 | ||
) |
lerp evaluates linear interpolation
t | is a value in [0.0, 1.0]. |
x0 | is the min value. |
x1 | is the max value. |
PIC_INLINE float pic::pic::log10fPlusEpsilon | ( | float | x | ) |
log10fPlusEpsilon
x |
PIC_INLINE float pic::pic::log10PlusOne | ( | float | x | ) |
logf10PlusOne computes log10 of a value plus 1.
x | is a value for which the log10 needs to be computed. |
PIC_INLINE int pic::pic::log2 | ( | int | n | ) |
log2 computes logarithm in base 2 for integers.
n | is an integer value. |
PIC_INLINE double pic::pic::log2 | ( | double | x | ) |
log2
x |
PIC_INLINE float pic::pic::log2f | ( | float | x | ) |
log2f logarithm in base 2 for floating point
x |
PIC_INLINE float pic::pic::log2fPlusEpsilon | ( | float | x | ) |
log2fPlusEpsilon
x |
PIC_INLINE long pic::pic::lround | ( | double | x | ) |
lround rounds double numbers properly.
x | is a scalar. |
PIC_INLINE float pic::pic::lround | ( | float | x | ) |
lround rounds float numbers properly.
x | is a scalar. |
|
inline |
MitchellNetravali.
x | |
B | |
C |
float pic::pic::normalCDF | ( | float | x, |
float | mu, | ||
float | sigma | ||
) |
normalCDF
x | |
mu | |
sigma |
PIC_INLINE float pic::pic::normalDistribution | ( | float | x, |
float | mu = 0.0f , |
||
float | sigma = 1.0f |
||
) |
normalDistribution
x | |
mu | |
sigma |
PIC_INLINE Vec<N, float> pic::pic::normalize | ( | Vec< N, float > | x | ) |
|
inline |
parseStringToStdVector
str | |
delim | |
str_vec |
|
inline |
PoissonRadius estimates the radius of a Poisson-disk like distribution using nSmaples.
nSamples | is the number of samples to have. |
PIC_INLINE int pic::pic::pow2 | ( | int | n | ) |
pow2 computes 2^n.
n | is a positive exponent. |
PIC_INLINE float pic::pic::pow2f | ( | float | x | ) |
pow2f
x |
PIC_INLINE float pic::pic::powf10fMinusEpsilon | ( | float | x | ) |
powf10fMinusEpsilon
x |
PIC_INLINE int pic::pic::powint | ( | int | x, |
int | b | ||
) |
powint computes power function for integer values.
x | is the base. |
b | is the exponent. |
Triple creates an std::vector which contains img1, img2, img3, and img4; this is for filters input.
img1 | is a pointer to a pic::Image |
img2 | is a pointer to a pic::Image |
img3 | is a pointer to a pic::Image |
img4 | is a pointer to a pic::Image |
PIC_INLINE float pic::pic::Rad2Deg | ( | float | rad | ) |
Rad2Deg converts angles expressed in radians into angles expressed in degrees.
rad | is a value of an angle expressed in radians. |
PIC_INLINE Vec<N, float> pic::pic::randomPoint | ( | std::mt19937 * | m | ) |
randomPoint
m |
|
inline |
randU computes a random number in [0, 1[ using the classic rand().
PIC_INLINE unsigned char* pic::pic::ReadBMP | ( | std::string | nameFile, |
unsigned char * | data, | ||
int & | width, | ||
int & | height, | ||
int & | channels | ||
) |
ReadBMP reads an image as .bmp file.
nameFile | |
data | |
width | |
height | |
channels |
bool pic::pic::readEXIF | ( | std::string | name, |
EXIFInfo & | info | ||
) |
readEXIF
name | |
info |
PIC_INLINE float* pic::pic::ReadEXR | ( | std::string | nameFile, |
float * | data, | ||
int & | width, | ||
int & | height, | ||
int & | channels | ||
) |
PIC_INLINE float* pic::pic::ReadHDR | ( | std::string | nameFile, |
float * | data, | ||
int & | width, | ||
int & | height | ||
) |
ReadHDR reads a .hdr/.pic file.
nameFile | |
data | |
width | |
height |
PIC_INLINE float* pic::pic::ReadPFM | ( | std::string | nameFile, |
float * | data, | ||
int & | width, | ||
int & | height, | ||
int & | channel | ||
) |
ReadPFM loads a portable float map from a file.
nameFile | |
data | |
width | |
height | |
channel |
PIC_INLINE unsigned char* pic::pic::ReadPGM | ( | std::string | nameFile, |
unsigned char * | data, | ||
int & | width, | ||
int & | height, | ||
int & | channels | ||
) |
ReadPGM reads an .ppm file.
nameFile | |
data | |
width | |
height | |
channels |
PIC_INLINE unsigned char* pic::pic::ReadPPM | ( | std::string | nameFile, |
unsigned char * | data, | ||
int & | width, | ||
int & | height, | ||
int & | channels | ||
) |
ReadPPM reads an .ppm file.
nameFile | |
data | |
width | |
height | |
channels |
PIC_INLINE unsigned char* pic::pic::ReadSTB | ( | std::string | nameFile, |
int & | width, | ||
int & | height, | ||
int & | channels | ||
) |
ReadSTB.
nameFile | |
width | |
height | |
channels |
std::string pic::pic::readString | ( | FILE * | file, |
int | length | ||
) |
readString
file | |
length |
std::string pic::pic::readStringFromUChar | ( | unsigned char * | data, |
int | length | ||
) |
readStringFromUChar
data |
PIC_INLINE unsigned char* pic::pic::ReadTGA | ( | std::string | nameFile, |
unsigned char * | data, | ||
int & | width, | ||
int & | height, | ||
int & | channels | ||
) |
ReadTGA reads an image in the .tga format.
nameFile | |
data | |
width | |
height | |
channels |
PIC_INLINE float* pic::pic::ReadTMP | ( | std::string | nameFile, |
float * | data, | ||
int & | width, | ||
int & | height, | ||
int & | channels, | ||
int & | frames, | ||
bool | bHeader = true |
||
) |
ReadTMP reads a dump temp file.
nameFile | |
data | |
width | |
height | |
channels | |
frames | |
bHeader |
float pic::pic::readUnsignedRational | ( | FILE * | file, |
bool | bMotorola | ||
) |
readUnsignedRational
file | |
bMotorola |
PIC_INLINE float* pic::pic::ReadVOL | ( | std::string | nameFile, |
float * | data, | ||
int & | width, | ||
int & | height, | ||
int & | depth, | ||
int & | channels | ||
) |
ReadVOL.
nameFile | |
data | |
width | |
height | |
depth | |
channels |
|
inline |
release
data |
|
inline |
RemoveExtension removes the extension of a string.
name |
|
inline |
removeInitialSpaces removes spaces at the beginning of a string.
name |
|
inline |
removeLocalPath removes the local path of a string.
name |
|
inline |
replaceExtension changes .format in a file name.
nameOut | |
fmtIn | |
fmtOut |
|
inline |
Rx evaluates B-spline (cubic).
x | is the curve parameter in [0, 1]. |
PIC_INLINE float pic::pic::sCurve5 | ( | float | x | ) |
sCurve5 evaluates a quintic S-Shape: 6x^5-15x^4+10x^3
x | is a value in [0.0, 1.0] |
|
inline |
setToANullVector
vec | |
n |
PIC_INLINE float pic::pic::sFunction | ( | float | x | ) |
sFunction evaluates a cubic s-function.
x | is a value in [0.0, 1.0] |
PIC_INLINE float pic::pic::sigmoid | ( | float | x | ) |
sigmoid
x |
PIC_INLINE float pic::pic::sigmoidInv | ( | float | x | ) |
sigmoidInv
x |
PIC_INLINE float pic::pic::simple8bitWithGamma | ( | float | x | ) |
simple8bitWithGamma
x |
PIC_INLINE ImageVec pic::pic::Single | ( | Image * | img | ) |
Single creates an std::vector which contains img; this is for filters input.
img | is a pointer to a pic::Image |
PIC_INLINE ImageGLVec pic::pic::SingleGL | ( | ImageGL * | img | ) |
SingleGL creates a single for filters input.
img |
PIC_INLINE float pic::pic::SmoothStep | ( | float | a, |
float | b, | ||
float | value | ||
) |
SmoothStep smoothes a value from a to b using a cube S-Shape.
a | is the min value. |
b | is the max value. |
value | is a value in [0.0, 1.0]. |
PIC_INLINE float pic::pic::sqrtf_s | ( | float | x | ) |
sqrtf_s
x |
PIC_INLINE float pic::pic::square | ( | float | x | ) |
Square applies square function to a value.
x | a value. |
|
inline |
stdStringRep replaces strSub in str with strRep just once.
str | is the input string. |
strSub | is the substring to find in str. |
strRep | is the string for replacing strSub. |
|
inline |
stdStringRepAll replaces all strSub in str with strRep.
str | |
strSub | |
strRep |
|
inline |
stdVectorArrayClear
vec |
|
inline |
stdVectorClear
vec |
PIC_INLINE int pic::pic::timeGetTime | ( | ) |
void pic::pic::transferFromPlainToVec | ( | std::vector< T > & | in, |
std::vector< Vec< N, T > > & | out | ||
) |
void pic::pic::transferFromVecToPlain | ( | std::vector< Vec< N, T > > & | in, |
std::vector< T > & | out | ||
) |
PIC_INLINE ImageVec pic::pic::Triple | ( | Image * | img1, |
Image * | img2, | ||
Image * | img3 | ||
) |
Triple creates an std::vector which contains img1, img2, and img3; this is for filters input.
img1 | is a pointer to a pic::Image |
img2 | is a pointer to a pic::Image |
img3 | is a pointer to a pic::Image |
PIC_INLINE ImageGLVec pic::pic::TripleGL | ( | ImageGL * | img1, |
ImageGL * | img2, | ||
ImageGL * | img3 | ||
) |
TripleGL creates a triple for filters input.
img1 | |
img2 | |
img3 |
unsigned int pic::pic::twoByteToValue | ( | unsigned char | data[2], |
bool | bMotorola | ||
) |
twoByteToValue
data | |
bMotorola |
void pic::pic::vecGamma | ( | Vec< N, float > & | ret, |
float | g | ||
) |
void pic::pic::vecrint | ( | Vec< N, float > & | ret | ) |
void pic::pic::vecSqrt | ( | Vec< N, float > & | ret | ) |
PIC_INLINE bool pic::pic::WriteBMP | ( | std::string | nameFile, |
const unsigned char * | data, | ||
int | width, | ||
int | height, | ||
int | channels | ||
) |
WriteBMP writes an image as a .bmp file.
nameFile | |
data | |
width | |
height | |
channels |
PIC_INLINE bool pic::pic::WriteEXR | ( | std::string | nameFile, |
float * | data, | ||
int | width, | ||
int | height, | ||
int | channels = 3 |
||
) |
WriteEXR.
nameFile | |
data | |
width | |
height | |
channels |
PIC_INLINE bool pic::pic::WriteHDR | ( | std::string | nameFile, |
float * | data, | ||
int | width, | ||
int | height, | ||
int | channels, | ||
float | appliedExposure = 1.0f , |
||
bool | bRLE = true |
||
) |
WriteHDR writes a .hdr/.pic file.
nameFile | |
data | |
width | |
height | |
channels | |
appliedExposure | |
bRLE |
PIC_INLINE bool pic::pic::WriteHDRBlock | ( | std::string | nameFile, |
float * | buffer_line, | ||
int | width, | ||
int | height, | ||
int | channels, | ||
int | blockID, | ||
int | nBlocks | ||
) |
WriteHDRBlock writes a .hdr file.
nameFile | |
buffer_line | |
width | |
height | |
channels | |
blockID | |
nBlocks |
PIC_INLINE void pic::pic::WriteLineHDR | ( | FILE * | file, |
unsigned char * | buffer_line, | ||
int | width | ||
) |
WriteLineHDR writes a scanline of an image using RLE and RGBE encoding.
file | |
buffer_line | |
width |
PIC_INLINE bool pic::pic::WritePFM | ( | std::string | nameFile, |
float * | data, | ||
int | width, | ||
int | height, | ||
int | channels = 3 |
||
) |
WritePFM writes an HDR image in the portable float map format into a file.
nameFile | |
data | |
width | |
height | |
channels |
PIC_INLINE bool pic::pic::WritePGM | ( | std::string | nameFile, |
const unsigned char * | data, | ||
int | width, | ||
int | height, | ||
int | channels, | ||
bool | bAscii = false |
||
) |
WritePGM writes an .ppm file.
nameFile | |
data | |
width | |
height | |
channels | |
bAscii |
PIC_INLINE bool pic::pic::WritePPM | ( | std::string | nameFile, |
const unsigned char * | data, | ||
int | width, | ||
int | height, | ||
int | channels | ||
) |
WritePPM writes an .ppm file.
nameFile | |
data | |
width | |
height | |
channels |
PIC_INLINE bool pic::pic::WriteSTB | ( | std::string | nameFile, |
unsigned char * | data, | ||
int | width, | ||
int | height, | ||
int | channels = 3 |
||
) |
WriteSTB.
nameFile | |
data | |
width | |
height | |
channels |
PIC_INLINE bool pic::pic::WriteTGA | ( | std::string | nameFile, |
const unsigned char * | data, | ||
int | width, | ||
int | height, | ||
int | channels | ||
) |
WriteTGA writes an image in the .tga format.
nameFile | |
data | |
width | |
height | |
channels |
PIC_INLINE bool pic::pic::WriteTMP | ( | std::string | nameFile, |
float * | data, | ||
int & | width, | ||
int & | height, | ||
int & | channels, | ||
int & | frames, | ||
bool | bHeader = true |
||
) |
WriteTMP writes a dump temp file.
nameFile | |
data | |
width | |
height | |
channels | |
frames | |
bHeader |
PIC_INLINE bool pic::pic::WriteVOL | ( | std::string | nameFile, |
float * | data, | ||
int | width, | ||
int | height, | ||
int | depth, | ||
int | channels = 3 |
||
) |
WriteVOL.
nameFile | |
data | |
width | |
height | |
depth | |
channels |
const float pic::pic::C_EPSILON = 1e-6f |
const float pic::pic::C_INV_LOG_NAT_2 = 1.4426950408889634073599246810019f |
const double pic::pic::C_INV_LOG_NAT_2_D = 1.4426950408889634073599246810019 |
const float pic::pic::C_INV_PI = 0.31830988618379067153776526745f |
const float pic::pic::C_INV_PI_2 = 0.159154943091895335768883763f |
const float pic::pic::C_INV_PI_4 = 0.07957747154594766788444188168626f |
const float pic::pic::C_LOG_NAT_2 = 0.69314718055994530941723212145818f |
const float pic::pic::C_ONE_80_OVER_PI = 57.295779513082320876798154814105f |
const float pic::pic::C_PI = 3.1415926535897932384626433832795f |
const float pic::pic::C_PI_025 = 0.78539816339744830961566084581988f |
const float pic::pic::C_PI_05 = 1.5707963267948966192313216916398f |
const float pic::pic::C_PI_2 = 6.283185307179586476925286766559f |
const float pic::pic::C_PI_2_2 = 19.739208802178717237668981999752f |
const float pic::pic::C_PI_4 = 12.566370614359172953850573533118f |
const float pic::pic::C_PI_OVER_ONE_80 = 0.017453292519943295769236907685f |
const float pic::pic::C_SQRT_2 = 1.4142135623730950488016887242097f |
const int pic::pic::CONST_DARTTHROWING = 5000 |
const float pic::pic::mtxRGBtoXYZ[] |
const float pic::pic::mtxXYZtoRGB[] |
const float pic::pic::POISSON_RHO = 0.75f |