ImageDev

Initialization

This section introduces how to initialize and finalize ImageDev.

Syntax

Method Description
void init() Initializes the ImageDev library. This method performs some mandatory internal initializations and checks the license.
void finish() Finalizes the ImageDev library. This method frees some internal objects and releases the license when using floating licensing.
bool isInitialized() Checks if the ImageDev library has been initialized. Returns true if ImageDev is initialized, returns false otherwise.
 // ImageDev library initialization
imagedev::init();
// Check initialization if( imagedev::isInitialized() ) { std::cout << "ImageDev is initialized" << std::endl;
// Open a tif file auto imageInput = ioformat::readImage(std::string( IMAGEDEVDATA_IMAGES_FOLDER ) + "hello_imagedev.tif");
// Apply a normalization of its graylevels using function coding style std::shared_ptr < iolink::ImageView > imageNorm = imagedev::rescaleIntensity(imageInput, imagedev::RescaleIntensity::OutputType::SAME_AS_INPUT, imagedev::RescaleIntensity::RangeMode::PERCENTILE, { 2, 98 }, { 0, 255 }, { 0, 255 });
// ImageDev library finalization imagedev::finish(); }