Create an image and export it to a file
Usage: imageExportInfo_tutorial
#include <iostream>
#include <vigra/multi_array.hxx>
#include <vigra/stdimage.hxx>
int main(int argc, char ** argv)
{
for (int y = 0; y < imageArray.shape(1); y++)
{
for (int x = 0; x < imageArray.shape(0); x++)
{
if ((x%20)/10 == (y%20)/10)
imageArray(x,y) = 0;
else
imageArray(x,y) = 255;
}
}
exportImage(imageArray,
ImageExportInfo(
"testimage.jpg").setCompression(
"JPEG QUALITY=70"));
exportImage(imageArray, "testimage.gif");
return 0;
}
Argument object for the function exportImage().
Definition: imageinfo.hxx:134
Main MultiArray class containing the memory management.
Definition: multi_array.hxx:2477
image import and export functions