Image Utilities (IU)
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Groups Pages
Functions
Images

Read and write images. More...

Functions

IUIO_DLLAPI iu::ImageCpu_8u_C1iu::imread_8u_C1 (const std::string &filename)
 
IUIO_DLLAPI iu::ImageCpu_8u_C3iu::imread_8u_C3 (const std::string &filename)
 
IUIO_DLLAPI iu::ImageCpu_8u_C4iu::imread_8u_C4 (const std::string &filename)
 
IUIO_DLLAPI iu::ImageCpu_32f_C1iu::imread_32f_C1 (const std::string &filename)
 
IUIO_DLLAPI iu::ImageCpu_32f_C3iu::imread_32f_C3 (const std::string &filename)
 
IUIO_DLLAPI iu::ImageCpu_32f_C4iu::imread_32f_C4 (const std::string &filename)
 
IUIO_DLLAPI iu::ImageGpu_8u_C1iu::imread_cu8u_C1 (const std::string &filename)
 
IUIO_DLLAPI iu::ImageGpu_8u_C4iu::imread_cu8u_C4 (const std::string &filename)
 
IUIO_DLLAPI iu::ImageGpu_32f_C1iu::imread_cu32f_C1 (const std::string &filename)
 
IUIO_DLLAPI iu::ImageGpu_32f_C4iu::imread_cu32f_C4 (const std::string &filename)
 
IUIO_DLLAPI bool iu::imsave (iu::ImageCpu_8u_C1 *image, const std::string &filename, const bool &normalize=false)
 
IUIO_DLLAPI bool iu::imsave (iu::ImageCpu_8u_C3 *image, const std::string &filename, const bool &normalize=false)
 
IUIO_DLLAPI bool iu::imsave (iu::ImageCpu_8u_C4 *image, const std::string &filename, const bool &normalize=false)
 
IUIO_DLLAPI bool iu::imsave (iu::ImageCpu_32f_C1 *image, const std::string &filename, const bool &normalize=false)
 
IUIO_DLLAPI bool iu::imsave (iu::ImageCpu_32f_C3 *image, const std::string &filename, const bool &normalize=false)
 
IUIO_DLLAPI bool iu::imsave (iu::ImageCpu_32f_C4 *image, const std::string &filename, const bool &normalize=false)
 
IUIO_DLLAPI bool iu::imsave (iu::ImageGpu_8u_C1 *image, const std::string &filename, const bool &normalize=false)
 
IUIO_DLLAPI bool iu::imsave (iu::ImageGpu_8u_C4 *image, const std::string &filename, const bool &normalize=false)
 
IUIO_DLLAPI bool iu::imsave (iu::ImageGpu_32f_C1 *image, const std::string &filename, const bool &normalize=false)
 
IUIO_DLLAPI bool iu::imsave (iu::ImageGpu_32f_C4 *image, const std::string &filename, const bool &normalize=false)
 
IUIO_DLLAPI void iu::imshow (iu::ImageCpu_8u_C1 *image, const std::string &winname, const bool &normalize=false)
 
IUIO_DLLAPI void iu::imshow (iu::ImageCpu_8u_C3 *image, const std::string &winname, const bool &normalize=false)
 
IUIO_DLLAPI void iu::imshow (iu::ImageCpu_8u_C4 *image, const std::string &winname, const bool &normalize=false)
 
IUIO_DLLAPI void iu::imshow (iu::ImageCpu_32f_C1 *image, const std::string &winname, const bool &normalize=false)
 
IUIO_DLLAPI void iu::imshow (iu::ImageCpu_32f_C3 *image, const std::string &winname, const bool &normalize=false)
 
IUIO_DLLAPI void iu::imshow (iu::ImageCpu_32f_C4 *image, const std::string &winname, const bool &normalize=false)
 
IUIO_DLLAPI void iu::imshow (iu::ImageGpu_8u_C1 *image, const std::string &winname, const bool &normalize=false)
 
IUIO_DLLAPI void iu::imshow (iu::ImageGpu_8u_C4 *image, const std::string &winname, const bool &normalize=false)
 
IUIO_DLLAPI void iu::imshow (iu::ImageGpu_32f_C1 *image, const std::string &winname, const bool &normalize=false)
 
IUIO_DLLAPI void iu::imshow (iu::ImageGpu_32f_C4 *image, const std::string &winname, const bool &normalize=false)
 

Detailed Description

Read and write images.

Function Documentation

IUIO_DLLAPI iu::ImageCpu_8u_C1* iu::imread_8u_C1 ( const std::string &  filename)

Loads an image to host memory from a file.

Parameters
filenameName of file to be loaded
Returns
loaded image in host memory (ImageCpu).
IUIO_DLLAPI iu::ImageGpu_8u_C1* iu::imread_cu8u_C1 ( const std::string &  filename)

Loads an image to device memory from a file.

Parameters
filenameName of file to be loaded
Returns
loaded image in device memory (ImageGpu).
IUIO_DLLAPI bool iu::imsave ( iu::ImageCpu_8u_C1 image,
const std::string &  filename,
const bool &  normalize = false 
)

Saves a host image to a file.

Parameters
imagePointer to host image (cpu) that should be written to disk.
filenameName of file to be saved.
Returns
Saved status.
IUIO_DLLAPI bool iu::imsave ( iu::ImageGpu_8u_C1 image,
const std::string &  filename,
const bool &  normalize = false 
)

Saves a device image to a file.

Parameters
imagePointer to device image (gpu) that should be written to disk.
filenameName of file to be saved.
Returns
Saved status.
IUIO_DLLAPI void iu::imshow ( iu::ImageCpu_8u_C1 image,
const std::string &  winname,
const bool &  normalize = false 
)

Shows the host image in a window using OpenCVs imshow

Parameters
imagePointer to host image (cpu) that should be shown.
winnameName of the window.
IUIO_DLLAPI void iu::imshow ( iu::ImageGpu_8u_C1 image,
const std::string &  winname,
const bool &  normalize = false 
)

Shows the device image in a host window using OpenCVs imshow

Parameters
imagePointer to device image (gpu) that should be shown.
winnameName of the window.