Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::cimgutil Namespace Reference

Classes

struct  TIFFHeader
 

Enumerations

enum class  InterpolationType : int {
  RawMemory = -1 , NoInterpolation = 0 , Nearest = 1 , Moving = 2 ,
  Linear = 3 , Grid = 4 , Cubic = 5 , Lanczos = 6
}
 
enum class  ConsiderAspectRatio { No , Yes }
 
enum class  TIFFResolutionUnit { None , Inch , Centimeter }
 

Functions

template<typename T >
const cimg_library::CImg< T > & saveCImgToFileStream (FILE *handle, const cimg_library::CImg< T > &img, std::string_view extension)
 
template<typename T >
void saveCImgToBuffer (const cimg_library::CImg< T > &img, std::string_view ext, std::vector< unsigned char > &buff)
 
template<typename T >
std::vector< unsigned char > saveCImgToBuffer (const cimg_library::CImg< T > &img, std::string_view ext)
 
IVW_MODULE_CIMG_API TIFFHeader getTIFFHeader (const std::filesystem::path &filename)
 
IVW_MODULE_CIMG_API std::shared_ptr< LayerRAMloadLayer (const std::filesystem::path &filePath)
 
IVW_MODULE_CIMG_API std::shared_ptr< LayerRAMloadLayerTiff (const std::filesystem::path &filePath)
 
IVW_MODULE_CIMG_API std::shared_ptr< VolumeRAMloadVolume (const std::filesystem::path &filePath)
 
IVW_MODULE_CIMG_API std::shared_ptr< VolumeRAMloadVolume (const std::filesystem::path &filePath, const DataFormatBase *format, size3_t dims)
 
IVW_MODULE_CIMG_API void updateVolume (VolumeRAM &volume, const std::filesystem::path &filePath)
 
IVW_MODULE_CIMG_API void saveLayer (const LayerRAM &layer, const std::filesystem::path &filePath)
 
IVW_MODULE_CIMG_API void saveLayer (const LayerRAM &layer, std::vector< unsigned char > &dst, std::string_view extension)
 
IVW_MODULE_CIMG_API bool rescaleLayerRamToLayerRam (const LayerRAM *source, LayerRAM *target)
 
IVW_MODULE_CIMG_API bool rescaleLayerRamToLayerRam (const LayerRAM *source, LayerRAM *target, cimgutil::InterpolationType interpolation, cimgutil::ConsiderAspectRatio aspectRatio=cimgutil::ConsiderAspectRatio::Yes)
 
IVW_MODULE_CIMG_API std::string getLibJPGVersion ()
 
IVW_MODULE_CIMG_API std::string getOpenEXRVersion ()
 

Detailed Description

cimgutil

Function Documentation

◆ loadLayer()

IVW_MODULE_CIMG_API std::shared_ptr< LayerRAM > inviwo::cimgutil::loadLayer ( const std::filesystem::path & filePath)

Loads layer from a specified filePath.

◆ loadVolume()

IVW_MODULE_CIMG_API std::shared_ptr< VolumeRAM > inviwo::cimgutil::loadVolume ( const std::filesystem::path & filePath)

Loads volume from a specified filePath.