![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Read and write a Raw image using IPSDK. More...
Functions | |
| IPSDKIMAGEFILE_API DiskImagePtr | ipsdk::image::file::openRawImageFile (const boost::filesystem::path &rawFilePath, const BaseImageGeometry &imageGeometry, const ipUInt64 dataStartOffset=0) |
| function allowing to open a raw file as a disk image More... | |
| IPSDKIMAGEFILE_API void | ipsdk::image::file::saveRawImageFile (const boost::filesystem::path &rawFilePath, const ImageConstPtr &pImage, const std::string &headerData=std::string()) |
| function allowing to save a raw image file More... | |
| IPSDKIMAGEFILE_API ImagePtr | ipsdk::image::file::loadRawImageFile (const boost::filesystem::path &rawFilePath, const BaseImageGeometry &imageGeometry, const ipUInt64 dataStartOffset=0) |
| function allowing to load a raw image file More... | |
| IPSDKIMAGEFILE_API void | ipsdk::image::file::loadRawImageFile (const boost::filesystem::path &rawFilePath, const BaseImageGeometry &imageGeometry, const ImagePtr &pOutImg, const ipUInt64 dataStartOffset=0) |
| function allowing to load a raw image file More... | |
Read and write a Raw image using IPSDK.
This page briefly presents how to load an image from a RAW file using IPSDK.
First, the header to include to load and save an image from a RAW file is :
To save an image in a RAW file, only the following instruction is needed :
Since a RAW file stores the data without any header, it is necessary to specify its geometry while loading an image from a RAW file. These following instructions allow to load a two dimensional grey-level image from a RAW file :
See Image geometry concepts in IPSDK for more details about image geometry.
In Python, the following command lines show how to write and read an image from a RAW file :
| IPSDKIMAGEFILE_API ImagePtr ipsdk::image::file::loadRawImageFile | ( | const boost::filesystem::path & | rawFilePath, |
| const BaseImageGeometry & | imageGeometry, | ||
| const ipUInt64 | dataStartOffset = 0 |
||
| ) |
function allowing to load a raw image file
| ipsdk::image::file::IPSDKImageFileException | on failure |
| IPSDKIMAGEFILE_API DiskImagePtr ipsdk::image::file::openRawImageFile | ( | const boost::filesystem::path & | rawFilePath, |
| const BaseImageGeometry & | imageGeometry, | ||
| const ipUInt64 | dataStartOffset = 0 |
||
| ) |
function allowing to open a raw file as a disk image
| ipsdk::image::file::IPSDKImageFileException | on failure |
| IPSDKIMAGEFILE_API void ipsdk::image::file::saveRawImageFile | ( | const boost::filesystem::path & | rawFilePath, |
| const ImageConstPtr & | pImage, | ||
| const std::string & | headerData = std::string() |
||
| ) |
function allowing to save a raw image file
| ipsdk::image::file::IPSDKImageFileException | on failure |
| IPSDKIMAGEFILE_API void ipsdk::image::file::loadRawImageFile | ( | const boost::filesystem::path & | rawFilePath, |
| const BaseImageGeometry & | imageGeometry, | ||
| const ImagePtr & | pOutImg, | ||
| const ipUInt64 | dataStartOffset = 0 |
||
| ) |
function allowing to load a raw image file
| ipsdk::image::file::IPSDKImageFileException | on failure |
1.8.14