NAME

scale_image_size - Scale an image

SYNOPSIS

#include "i/i_transform.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


int scale_image_size
(
	KJB_image **target_ipp,
	const KJB_image *ip,
	double scale_factor
);

DESCRIPTION

This routine scales (in size) the image pointed to by ip and puts it in *target_ipp. This routine follows the KJB memory management conventions. This routine calls imagemagick to perform the scaling.

RETURNS

NO_ERROR on sucess and ERROR on failure with an error message being set.

NOTE

This should not be confused with scale_image, which scales the pixel values (the color) of an image. In fact, scale_image should probably be renamed to something else and this routine should be called scale_image.

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Ernesto Brau

DOCUMENTER

Ernesto Brau

SEE ALSO

ow_invert_image , ow_invert_gamma_image , rotate_image_right , rotate_image_left , ow_horizontal_flip_image , ow_vertical_flip_image