Beispiel #1
0
/**
 * im_rotquad:
 * @in: input image
 * @out: output image
 *
 * Rotate the quadrants of the image so that the point that was at the
 * top-left is now in the centre. Handy for moving Fourier images to optical
 * space.
 *
 * See also: im_wrap().
 *
 * Returns: 0 on success, -1 on error
 */
int
im_rotquad( IMAGE *in, IMAGE *out )
{
	return( im_wrap( in, out, in->Xsize / 2, in->Ysize / 2 ) );
}
Beispiel #2
0
/* Call im_wrap via arg vector.
 */
static int
wrap_vec (im_object * argv)
{
  return im_wrap( argv[0], argv[1], *(int*)argv[2], *(int*)argv[3] );
}