#include <vigra/multi_array.hxx>
#include <vigra/multi_math.hxx>
#include <vigra/basicgeometry.hxx>
int main (int argc, char ** argv)
{
{
exportArray.subarray(Shape2(0,0), info.
shape()) = imageArray;
MultiArrayView<2, UInt8> topright = exportArray.subarray(Shape2(w,0), Shape2(2*w, h));
MultiArrayView<2, UInt8> upperhalf = exportArray.subarray(Shape2(0,0), Shape2(2*w, h));
MultiArrayView<2, UInt8> lowerhalf = exportArray.subarray(Shape2(0,h), 2*info.
shape());
}
else
{
MultiArray<2, RGBValue<UInt8> > imageArray(info.
shape());
MultiArray<2, RGBValue<UInt8> > exportArray(2*info.
shape());
exportArray.subarray(Shape2(0,0), info.
shape()) = imageArray;
MultiArrayView<2, RGBValue<UInt8> > topright = exportArray.subarray(Shape2(w,0), Shape2(2*w, h));
MultiArrayView<2, RGBValue<UInt8> > upperhalf = exportArray.subarray(Shape2(0,0), Shape2(2*w, h));
MultiArrayView<2, RGBValue<UInt8> > lowerhalf = exportArray.subarray(Shape2(0,h), 2*info.
shape());
}
return 0;
}
Argument object for the function importImage().
Definition: imageinfo.hxx:391
MultiArrayShape< 2 >::type shape() const
Main MultiArray class containing the memory management.
Definition: multi_array.hxx:2477
void importImage(...)
Read an image from a file.
void exportImage(...)
Write an image to a file.
image import and export functions
void reflectImage(...)
Reflect image horizontally or vertically.