PICCANTE
0.4
The hottest HDR imaging library!
|
Go to the source code of this file.
Namespaces | |
pic | |
pic::pic | |
pic::miniz | |
Typedefs | |
typedef std::vector< std::string > | pic::pic::StringVec |
StringVec is an std::vector of std::string. More... | |
typedef std::vector< int > | pic::pic::IntCoord |
IntCoord. More... | |
typedef IndexedArray< float > | pic::pic::IndexedArrayf |
typedef IndexedArray< int > | pic::pic::IndexedArrayi |
typedef IndexedArray< unsigned int > | pic::pic::IndexedArrayui |
typedef struct pic::_EXRAttribute | pic::EXRAttribute |
typedef struct pic::_EXRImage | pic::EXRImage |
typedef struct pic::_DeepImage | pic::DeepImage |
typedef std::vector< Image * > | pic::pic::ImageVec |
ImageVec an std::vector of pic::Image. More... | |
Enumerations | |
enum | pic::pic::LDR_type { pic::pic::LT_NOR, pic::pic::LT_NOR_GAMMA, pic::pic::LT_LDR, pic::pic::LT_NONE } |
The LDR_type enum. More... | |
enum | |
enum | |
enum | pic::pic::LABEL_IO_EXTENSION { pic::pic::IO_TMP, pic::pic::IO_PFM, pic::pic::IO_HDR, pic::pic::IO_EXR, pic::pic::IO_VOL, pic::pic::IO_BMP, pic::pic::IO_PPM, pic::pic::IO_TGA, pic::pic::IO_JPG, pic::pic::IO_PNG, pic::pic::IO_PGM, pic::pic::IO_NULL } |
Functions | |
template<class T > | |
void | pic::pic::filterInliers (std::vector< T > &vec, std::vector< unsigned int > &inliers, std::vector< T > &vecOut) |
filterInliers More... | |
template<class T > | |
void | pic::pic::stdVectorClear (std::vector< T *> &vec) |
stdVectorClear More... | |
template<class T > | |
void | pic::pic::stdVectorArrayClear (std::vector< T *> &vec) |
stdVectorArrayClear More... | |
template<class T > | |
void | pic::pic::setToANullVector (std::vector< T * > &vec, unsigned int n) |
setToANullVector More... | |
template<class T > | |
T * | pic::pic::releasePtr (T *data) |
release More... | |
template<class T > | |
T * | pic::pic::delete_s (T *data) |
delete_s More... | |
template<class T > | |
T * | pic::pic::delete_vec_s (T *data) |
delete_vec_s More... | |
PIC_INLINE int | pic::pic::timeGetTime () |
std::string | pic::pic::stdStringRep (std::string str, std::string strSub, std::string strRep) |
stdStringRep replaces strSub in str with strRep just once. More... | |
std::string | pic::pic::stdStringRepAll (std::string str, std::string strSub, std::string strRep) |
stdStringRepAll replaces all strSub in str with strRep. More... | |
template<class T > | |
std::string | pic::pic::fromNumberToString (T num) |
fromNumberToString converts a number into a string. More... | |
char | pic::pic::getSeparatorChar (std::string path) |
getSeparatorChar returns the folder separator in path as a char. More... | |
std::string | pic::pic::removeExtension (std::string name) |
RemoveExtension removes the extension of a string. More... | |
std::string | pic::pic::removeLocalPath (std::string name) |
removeLocalPath removes the local path of a string. More... | |
std::string | pic::pic::getFileNameOnly (std::string name) |
getFileNameOnly More... | |
std::string | pic::pic::getExtension (std::string name) |
getExtension gets the extension of a file name. More... | |
std::string | pic::pic::addSuffix (std::string name, std::string suffix) |
addSuffix adds a suffix to a file name. More... | |
std::string | pic::pic::replaceExtension (std::string nameOut, std::string fmtIn, std::string fmtOut) |
replaceExtension changes .format in a file name. More... | |
int | pic::pic::countSubString (std::string str, std::string subStr) |
countSubString counts how many subStr are in str. More... | |
std::string | pic::pic::getLocaDirectory (std::string path) |
getLocaDirectory gets local path. More... | |
std::string | pic::pic::getSeparator (std::string path) |
getSeparator returns the folder separator in path as a string More... | |
std::string | pic::pic::getFolderName (std::string path) |
getFolderName gets the folder name from the path. More... | |
std::string | pic::pic::getFileName (std::string path) |
getFileName gets the file name. More... | |
void | pic::pic::parseStringToStdVector (std::string str, char delim, StringVec *str_vec) |
parseStringToStdVector More... | |
std::string | pic::pic::genBilString (std::string type, float sigma_s, float sigma_r) |
genBilString More... | |
std::string | pic::pic::fromFileToStdString (std::string nameFile) |
fromFileToStdString writes a file into a std::string. More... | |
bool | pic::pic::checkAbsolutePath (std::string path) |
checkAbsolutePath checks if the path is absolute or not. More... | |
char * | pic::pic::fromStdStringToChar (std::string str) |
fromStdStringToChar converts from a std::string to a char*. More... | |
std::string | pic::pic::checkPath (std::string name) |
checkPath More... | |
std::string | pic::pic::adjustPath (std::string nameFile, std::string pathFolder) |
adjustPath modifies the path if it is not global. More... | |
std::string | pic::pic::removeInitialSpaces (char name[]) |
removeInitialSpaces removes spaces at the beginning of a string. More... | |
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. More... | |
PIC_INLINE bool | pic::pic::checkNormalized (const float *data, int size, float delta=1e-6f) |
checkNormalized checks if data is in [0,1]. More... | |
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. More... | |
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. More... | |
int | pic::pic::BitmapPadding (int bpp, int width) |
BitmapPadding (SYSTEM: X POS Y POS). More... | |
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. More... | |
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. More... | |
int | pic::LoadEXR (float **out_rgba, int *width, int *height, const char *filename, const char **err) |
int | pic::ParseMultiChannelEXRHeaderFromFile (EXRImage *image, const char *filename, const char **err) |
int | pic::ParseMultiChannelEXRHeaderFromMemory (EXRImage *image, const unsigned char *memory, const char **err) |
int | pic::LoadMultiChannelEXRFromFile (EXRImage *image, const char *filename, const char **err) |
int | pic::LoadMultiChannelEXRFromMemory (EXRImage *image, const unsigned char *memory, const char **err) |
int | pic::SaveMultiChannelEXRToFile (const EXRImage *image, const char *filename, const char **err) |
size_t | pic::SaveMultiChannelEXRToMemory (const EXRImage *image, unsigned char **memory, const char **err) |
int | pic::LoadDeepEXR (DeepImage *out_image, const char *filename, const char **err) |
void | pic::InitEXRImage (EXRImage *exrImage) |
int | pic::FreeEXRImage (EXRImage *exrImage) |
int | pic::ParseEXRHeaderFromMemory (EXRAttribute *customAttributes, int *numCustomAttributes, int *width, int *height, const unsigned char *memory) |
int | pic::LoadEXRFromMemory (float *out_rgba, const unsigned char *memory, const char **err) |
int | pic::SaveDeepEXR (const DeepImage *deepImage, const char *filename, const char **err) |
PIC_INLINE float * | pic::pic::ReadEXR (std::string nameFile, float *data, int &width, int &height, int &channels) |
PIC_INLINE bool | pic::pic::WriteEXR (std::string nameFile, float *data, int width, int height, int channels=3) |
WriteEXR. More... | |
PIC_INLINE void | pic::pic::fromFloatToRGBE (float *colFloat, unsigned char *colRGBE) |
fromFloatToRGBE More... | |
PIC_INLINE void | pic::pic::fromSingleFloatToRGBE (float *colFloat, unsigned char *colRGBE) |
fromSingleFloatToRGBE More... | |
PIC_INLINE void | pic::pic::fromRGBEToFloat (unsigned char *colRGBE, float *colFloat) |
fromRGBEToFloat More... | |
PIC_INLINE float * | pic::pic::ReadHDR (std::string nameFile, float *data, int &width, int &height) |
ReadHDR reads a .hdr/.pic file. More... | |
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. More... | |
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. More... | |
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. More... | |
PIC_INLINE float | pic::pic::convertFloatEndianess (float value) |
convertFloatEndianess converts a float from little-endian to big-endian or viceversa. More... | |
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. More... | |
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. More... | |
PIC_INLINE unsigned char * | pic::pic::ReadPPM (std::string nameFile, unsigned char *data, int &width, int &height, int &channels) |
ReadPPM reads an .ppm file. More... | |
PIC_INLINE bool | pic::pic::WritePPM (std::string nameFile, const unsigned char *data, int width, int height, int channels) |
WritePPM writes an .ppm file. More... | |
PIC_INLINE unsigned char * | pic::pic::ReadPGM (std::string nameFile, unsigned char *data, int &width, int &height, int &channels) |
ReadPGM reads an .ppm file. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
PIC_INLINE float * | pic::pic::ReadVOL (std::string nameFile, float *data, int &width, int &height, int &depth, int &channels) |
ReadVOL. More... | |
PIC_INLINE bool | pic::pic::WriteVOL (std::string nameFile, float *data, int width, int height, int depth, int channels=3) |
WriteVOL. More... | |
PIC_INLINE unsigned char * | pic::pic::ReadSTB (std::string nameFile, int &width, int &height, int &channels) |
ReadSTB. More... | |
PIC_INLINE bool | pic::pic::WriteSTB (std::string nameFile, unsigned char *data, int width, int height, int channels=3) |
WriteSTB. More... | |
unsigned int | pic::pic::twoByteToValue (unsigned char data[2], bool bMotorola) |
twoByteToValue More... | |
unsigned int | pic::pic::fourByteToValue (unsigned char data[4], bool bMotorola) |
fourByteToValue More... | |
bool | pic::pic::checkTag (unsigned char tag[2], unsigned short tag_r, bool bMotorola) |
checkTag More... | |
int | pic::pic::getTagID (unsigned char tag[2], bool bMotorola) |
getTagID More... | |
int | pic::pic::getBytesForComponents (int value) |
getBytesForComponents More... | |
std::string | pic::pic::readString (FILE *file, int length) |
readString More... | |
std::string | pic::pic::readStringFromUChar (unsigned char *data, int length) |
readStringFromUChar More... | |
float | pic::pic::readUnsignedRational (FILE *file, bool bMotorola) |
readUnsignedRational More... | |
bool | pic::pic::readEXIF (std::string name, EXIFInfo &info) |
readEXIF More... | |
PIC_INLINE LABEL_IO_EXTENSION | pic::pic::getLabelHDRExtension (std::string nameFile) |
getLabelHDRExtension returns the file label given its file name (for HDR images). More... | |
PIC_INLINE LABEL_IO_EXTENSION | pic::pic::getLabelLDRExtension (std::string nameFile) |
getLabelHDRExtension returns the file label given its file name (for LDR images). More... | |
PIC_INLINE ImageVec | pic::pic::Single (Image *img) |
Single creates an std::vector which contains img; this is for filters input. More... | |
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. More... | |
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. More... | |
PIC_INLINE ImageVec | pic::pic::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 | pic::pic::ImaveVecSortByExposureTime (ImageVec &stack) |
ImaveVecSortByExposureTime. More... | |
PIC_INLINE void | pic::pic::ImaveVecGetExposureTimesAsArray (ImageVec &stack, std::vector< float > &output, bool bLog) |
ImaveVecGetExposureTimesAsArray. More... | |
PIC_INLINE bool | pic::pic::ImageVecCheckSimilarType (ImageVec &stack) |
ImageVecCheckSimilarType. More... | |
PIC_INLINE bool | pic::pic::ImageVecCheck (ImageVec &imgIn, int minInputImages) |
ImageVecCheck. More... | |
anonymous enum |
anonymous enum |