#include <iostream>
#include <vigra/multi_array.hxx>
#include <vigra/stdimagefunctions.hxx>
#include <vigra/multi_math.hxx>
#include <string.h>
int main(int argc, char ** argv)
{
if(argc != 3)
{
std::cout << "Usage: " << argv[0] << " infile outfile" << std::endl;
return 1;
}
try
{
{
out = 255 - in;
if(strcmp(argv[2], "-") == 0)
{
}
else
{
}
}
else
{
if(strcmp(argv[2], "-") == 0)
{
}
else
{
}
}
}
catch (std::exception & e)
{
std::cout << e.what() << std::endl;
return 1;
}
return 0;
}
Argument object for the function exportImage().
Definition imageinfo.hxx:134
Argument object for the function importImage().
Definition imageinfo.hxx:391
const char * getFileType() const
Main MultiArray class containing the memory management.
Definition multi_array.hxx:2479
Class for a single RGB value.
Definition rgbvalue.hxx:128
void exportImage(...)
Write an image to a file.
void importImage(...)
Read an image from a file.
image import and export functions
std::string impexListFormats()
List the image formats VIGRA can read and write.
LinearIntensityTransform< DestValueType, Multiplier > linearIntensityTransform(Multiplier scale, DestValueType offset)
Apply a linear transform to the source pixel values.
Definition transformimage.hxx:800