#include <iostream>
#include "vigra/stdimage.hxx"
#include "vigra/stdimagefunctions.hxx"
int main(int argc, char ** argv)
{
if(argc != 3)
{
std::cout << "Usage: " << argv[0] << " infile outfile" << std::endl;
return 1;
}
try
{
{
for(; sy.
y != send.y; ++sy.y, ++dy.y)
{
for(; sx.
x != send.x; ++sx.x, ++dx.x)
{
*dx = 255 - *sx;
}
}
}
else
{
for(; sy.y != send.y; ++sy.y, ++dy.y)
{
for(; sx.x != send.x; ++sx.x, ++dx.x)
{
*dx = offset - *sx;
}
}
}
}
catch (vigra::StdException & e)
{
std::cout << e.what() << std::endl;
return 1;
}
return 0;
}
traverser lowerRight()
Definition basicimage.hxx:936
BasicImageIterator< UInt8, UInt8 ** > Iterator
Definition basicimage.hxx:532
traverser upperLeft()
Definition basicimage.hxx:925
Argument object for the function exportImage().
Definition imageinfo.hxx:134
Argument object for the function importImage().
Definition imageinfo.hxx:391
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
BasicImage< RGBValue< UInt8 > > BRGBImage
Definition stdimage.hxx:164
std::string impexListFormats()
List the image formats VIGRA can read and write.
BasicImage< UInt8 > BImage
Definition stdimage.hxx:62