![]() |
Inviwo
0.9.10.1
Inviwo documentation
|
Classes | |
| struct | TIFFHeader |
Functions | |
| template<typename T > | |
| std::vector< unsigned char > | saveCImgToBuffer (const cimg_library::CImg< T > &img, const std::string &ext) |
| template<typename T > | |
| const cimg_library::CImg< T > & | saveCImgToFileStream (FILE *handle, const cimg_library::CImg< T > &img, const std::string &ext) |
| IVW_MODULE_CIMG_API TIFFHeader | getTIFFHeader (const std::string &filename) |
| IVW_MODULE_CIMG_API void * | loadLayerData (void *dst, const std::string &filePath, uvec2 &out_dim, DataFormatId &formatId, bool rescaleToDim=false) |
| IVW_MODULE_CIMG_API void * | loadVolumeData (void *dst, const std::string &filePath, size3_t &out_dim, DataFormatId &formatId) |
| IVW_MODULE_CIMG_API void | saveLayer (const std::string &filePath, const Layer *inputImage) |
| IVW_MODULE_CIMG_API std::unique_ptr< std::vector< unsigned char > > | saveLayerToBuffer (const std::string &extension, const Layer *inputImage) |
| void * | loadTIFFLayerData (void *dst, const std::string &filePath, TIFFHeader header, bool rescaleToDim=false) |
| void * | loadTIFFVolumeData (void *dst, const std::string &filePath, TIFFHeader header) |
| IVW_MODULE_CIMG_API void * | rescaleLayer (const Layer *inputLayer, uvec2 dst_dim) |
| Rescales Layer of given image data. More... | |
| IVW_MODULE_CIMG_API void * | rescaleLayerRAM (const LayerRAM *layerRam, uvec2 dst_dim) |
| Rescales LayerRAM representation uses FILTER_BILINEAR by default. More... | |
| IVW_MODULE_CIMG_API bool | rescaleLayerRamToLayerRam (const LayerRAM *source, LayerRAM *target) |
| IVW_MODULE_CIMG_API std::string | getLibJPGVersion () |
| IVW_MODULE_CIMG_API std::string | getOpenEXRVersion () |
Variables | |
| std::unordered_map< std::string, DataFormatId > | extToBaseTypeMap_ |
cimgutil
| void * inviwo::cimgutil::loadLayerData | ( | void * | dst, |
| const std::string & | filePath, | ||
| uvec2 & | out_dim, | ||
| DataFormatId & | formatId, | ||
| bool | rescaleToDim = false |
||
| ) |
Loads layer data from a specified filePath.
| void * inviwo::cimgutil::loadTIFFLayerData | ( | void * | dst, |
| const std::string & | filePath, | ||
| TIFFHeader | header, | ||
| bool | rescaleToDim = false |
||
| ) |
Load TIFF image data.
| void * inviwo::cimgutil::loadTIFFVolumeData | ( | void * | dst, |
| const std::string & | filePath, | ||
| TIFFHeader | header | ||
| ) |
Load TIFF stack as volume.
| void * inviwo::cimgutil::loadVolumeData | ( | void * | dst, |
| const std::string & | filePath, | ||
| size3_t & | out_dim, | ||
| DataFormatId & | formatId | ||
| ) |
Loads volume data from a specified filePath.
| void * inviwo::cimgutil::rescaleLayer | ( | const Layer * | inputLayer, |
| uvec2 | dst_dim | ||
| ) |
Rescales Layer of given image data.
| inputLayer | image data that needs to be rescaled |
| dst_dim | is destination dimensions |
| void * inviwo::cimgutil::rescaleLayerRAM | ( | const LayerRAM * | layerRam, |
| uvec2 | dst_dim | ||
| ) |
Rescales LayerRAM representation uses FILTER_BILINEAR by default.
| layerRam | representation that needs rescaling |
| dst_dim | is destination dimensions |
| void inviwo::cimgutil::saveLayer | ( | const std::string & | filePath, |
| const Layer * | inputImage | ||
| ) |
Saves an layer of an image to a specified filename.
| filePath | the path including filename and extension, which is used to determine the image format |
| inputImage | specifies the image that is to be saved. |
| std::unique_ptr< std::vector< unsigned char > > inviwo::cimgutil::saveLayerToBuffer | ( | const std::string & | extension, |
| const Layer * | inputImage | ||
| ) |
Saves an layer of an unsigned char buffer.
| extension | specifies the output image format |
| inputImage | specifies the image that is to be saved. |
| std::unordered_map<std::string, DataFormatId> inviwo::cimgutil::extToBaseTypeMap_ |