PANDORE Version 6 GREYC-IMAGE

psplitimage



Splits image into 4 subimages.



Synopsis

psplitimage [im_in|-] [im_out1|-] [im_out2|-] [im_out3|-] [im_out4|-]

Description

psplitimage splits the input image im-in into four subimages im_out1, im_out2, im_out3 and im_out4 with the same size:

    [im_out1][im_out2]
    [im_out3][im_out4] 

If the im_in size is odd, then the first rectangle is smaller than the second.

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Builds a synthetic image to illustrate the Gibbs phenomenon in wavelets analysis.

   pshapedesign 256 256 0 2 150 150 a.pan
   pqmf daubechies 4 b.pan
   pdwt 1 a.pan b.pan c.pan
   psplitimage c.pan d1.pan d2.pan d3.pan d4.pan
   pthresholding 20 400 d2.pan e2.pan
   pthresholding 20 400 d3.pan e3.pan
   pthresholding 20 400 d4.pan e4.pan
   pmergeimages d1.pan e2.pan e3.pan e4.pan f.pan
   pidwt 1 f.pan b.pan out.pan

See also

Utility, pmergeimages

C++ prototype

Errc PSplitImage( const Img2dsf &im_in, Img2dsf &im_out1, Img2dsf &im_out2, Img2dsf &im_out3, Img2dsf &im_out4 );

Version française

Eclatement d'une image en 4 sous-images.


Author: Ludovic Soltys