NAME

scale_image - Scales an image by a factor

SYNOPSIS

#include "i/i_arithmetic.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
(
	KJB_image **out_ipp,
	const KJB_image *in_ip,
	double factor
);

DESCRIPTION

This routine computes multiplies all image pixels by the factor in argument "factor". The result is put into a second image which is created as needed. The original image is not touched.

RETURNS

NO_ERROR on sucess and ERROR on failure.

DISCLAIMER

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

AUTHOR

Kobus Barnard

DOCUMENTER

Kobus Barnard

SEE ALSO

power_image , ow_power_image , ow_scale_image , ow_scale_image_by_channel , scale_image_by_channel , subtract_images , ow_subtract_images , multiply_images , ow_multiply_images , divide_images , ow_divide_images , ow_min_of_images , add_images , ow_add_images , ow_subtract_vector_from_image , ow_add_vector_to_image , ow_min_thresh_image , ow_max_thresh_image , log_one_plus_image , ow_log_one_plus_image , ow_log_brightness_image , ow_exponantiate_image