BRL-CAD
size.c File Reference
#include "icv.h"
#include "vmath.h"
#include "bu/log.h"
#include "bu/malloc.h"
Include dependency graph for size.c:

Go to the source code of this file.

Functions

HIDDEN int shrink_image (icv_image_t *bif, unsigned int factor)
 
HIDDEN int under_sample (icv_image_t *bif, unsigned int factor)
 
HIDDEN int ninterp (icv_image_t *bif, unsigned int out_width, unsigned int out_height)
 
HIDDEN int binterp (icv_image_t *bif, unsigned int out_width, unsigned int out_height)
 
int icv_resize (icv_image_t *bif, ICV_RESIZE_METHOD method, unsigned int out_width, unsigned int out_height, unsigned int factor)
 

Function Documentation

HIDDEN int shrink_image ( icv_image_t bif,
unsigned int  factor 
)

< input and output pointers

Definition at line 33 of file size.c.

References bu_log(), bu_malloc(), bu_realloc(), icv_image::channels, icv_image::data, icv_image::height, UNLIKELY, and icv_image::width.

Referenced by icv_resize().

Here is the call graph for this function:

HIDDEN int under_sample ( icv_image_t bif,
unsigned int  factor 
)

Definition at line 79 of file size.c.

References bu_log(), bu_realloc(), icv_image::channels, icv_image::data, icv_image::height, UNLIKELY, and icv_image::width.

Referenced by icv_resize().

Here is the call graph for this function:

HIDDEN int ninterp ( icv_image_t bif,
unsigned int  out_width,
unsigned int  out_height 
)

Definition at line 108 of file size.c.

References bu_free(), bu_log(), bu_malloc(), icv_image::channels, icv_image::data, icv_image::height, and icv_image::width.

Referenced by icv_resize().

Here is the call graph for this function:

HIDDEN int binterp ( icv_image_t bif,
unsigned int  out_width,
unsigned int  out_height 
)

Definition at line 155 of file size.c.

References bu_free(), bu_log(), bu_malloc(), icv_image::channels, icv_image::data, icv_image::height, and icv_image::width.

Referenced by icv_resize().

Here is the call graph for this function: