WriteVipImage
Saves any image that has been generated with ImageDev on disk.
Access to parameter description
For an introduction: section Image Access
This algorithm saves an ImageView into a disk file. This file is written in the VIP format, which is a raw format designed to support any image generated by ImageDev. VIP image files generally have the vip extension.
See also
Access to parameter description
For an introduction: section Image Access
This algorithm saves an ImageView into a disk file. This file is written in the VIP format, which is a raw format designed to support any image generated by ImageDev. VIP image files generally have the vip extension.
See also
Function Syntax
This function returns None.
// Function prototype
void writeVipImage( std::shared_ptr< iolink::ImageView > inputImage, std::string filePath, bool overwrite, bool autoDetermineBestVersion, uint32_t fileFormatVersion );
Class Syntax
Parameters
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
![]() |
inputImage |
The input image to save on disk. | Image | Binary, Label, Grayscale or Multispectral | nullptr |
![]() |
filePath |
The path of the image file to save. Its recommended extension is ".vip". | String | "" | |
![]() |
overwrite |
The decision to take if the file already exists. If true, an existing file is overwritten. If false, an exeption is thrown when the output file already exists. | Bool | false | |
![]() |
autoDetermineBestVersion |
The way to tag the VIP format version in the file. If true, the version is automatically identified. | Bool | true | |
![]() |
fileFormatVersion |
The VIP format version in the file to indicate in the file. This parameter is ignored if the autoDetermineBestVersion parameter is true. | UInt32 | <=5 | 5 |
Object Examples
std::shared_ptr< iolink::ImageView > polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" ); WriteVipImage writeVipImageAlgo; writeVipImageAlgo.setInputImage( polystyrene ); writeVipImageAlgo.setFilePath( "output_writeVipImage.vip" ); writeVipImageAlgo.setOverwrite( true ); writeVipImageAlgo.setAutoDetermineBestVersion( true ); writeVipImageAlgo.setFileFormatVersion( 2 ); writeVipImageAlgo.execute();
Function Examples
std::shared_ptr< iolink::ImageView > polystyrene = ioformat::readImage( std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "polystyrene.tif" ); writeVipImage( polystyrene, "output_writeVipImage.vip", true, true, 2 );