env_image_ops.h File Reference

#include "Envision/env_config.h"
#include "Envision/env_image.h"
#include "Envision/env_math.h"
#include "Envision/env_pyr.h"
Include dependency graph for env_image_ops.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define INTMAXNORMMIN   ((intg32) 0)
#define INTMAXNORMMAX   ((intg32) 32768)

Functions

void env_dec_xy (const struct env_image *src, struct env_image *result)
 Decimate in X and Y (take one every 'factor' pixels).
void env_dec_x (const struct env_image *src, struct env_image *result)
 Decimate in X (take one every 'factor' pixels).
void env_dec_y (const struct env_image *src, struct env_image *result)
 Decimate in Y (take one every 'factor' pixels).
void env_lowpass_5_x_dec_x (const struct env_image *src, const struct env_math *imath, struct env_image *result)
void env_lowpass_5_y_dec_y (const struct env_image *src, const struct env_math *imath, struct env_image *result)
void env_lowpass_9_x (const struct env_image *src, const struct env_math *imath, struct env_image *result)
void env_lowpass_9_y (const struct env_image *src, const struct env_math *imath, struct env_image *result)
void env_lowpass_9 (const struct env_image *src, const struct env_math *imath, struct env_image *result)
void env_quad_energy (const struct env_image *img1, const struct env_image *img2, struct env_image *result)
void env_steerable_filter (const struct env_image *src, const intg32 kxnumer, const intg32 kynumer, const env_size_t kdenombits, const struct env_math *imath, struct env_image *result)
void env_attenuate_borders_inplace (struct env_image *a, env_size_t size)
void env_pyr_build_hipass_9 (const struct env_image *image, env_size_t firstlevel, const struct env_math *imath, struct env_pyr *result)
void env_pyr_build_steerable_from_hipass_9 (const struct env_pyr *hipass, const intg32 kxnumer, const intg32 kynumer, const env_size_t kdenombits, const struct env_math *imath, struct env_pyr *result)
void env_pyr_build_lowpass_5 (const struct env_image *image, env_size_t firstlevel, const struct env_math *imath, struct env_pyr *result)
 Wrapper for _cpu or _cuda version.
void env_pyr_build_lowpass_5_cpu (const struct env_image *image, env_size_t firstlevel, const struct env_math *imath, struct env_pyr *result)
 _cpu version implemented here, see CUDA/env_cuda.h for GPU version
void env_downsize_9_inplace (struct env_image *src, const env_size_t depth, const struct env_math *imath)
void env_rescale (const struct env_image *src, struct env_image *result)
void env_max_normalize_inplace (struct env_image *src, intg32 min, intg32 max, enum env_maxnorm_type typ, const intg32 rangeThresh)
void env_max_normalize_none_inplace (struct env_image *src, intg32 min, intg32 max, const intg32 rangeThresh)
void env_max_normalize_std_inplace (struct env_image *src, intg32 min, intg32 max, const intg32 rangeThresh)
void env_center_surround (const struct env_image *center, const struct env_image *surround, const int absol, struct env_image *result)
void env_get_rgby (const struct env_rgb_pixel *const src, const struct env_rgb_pixel *const src2, const env_size_t sz, struct env_image *rg, struct env_image *by, const intg32 thresh, const env_size_t inputbits)
 Compute R-G and B-Y opponent color maps.
void env_merge_range (const struct env_image *src, intg32 *mi, intg32 *ma)
 Update the range [mi,ma] to include the range of values in src.
void env_rescale_range_inplace (struct env_image *src, const intg32 mi, const intg32 ma)
 rescale the src image to a [0..255] result
void env_shift_clean (const struct env_image *srcImg, const env_ssize_t dx, const env_ssize_t dy, struct env_image *result)
 Shift an image by (dx, dy), without wraparound.
void env_shift_image (const struct env_image *srcImg, const env_ssize_t dxnumer, const env_ssize_t dynumer, const env_size_t denombits, struct env_image *result)

Detailed Description

Fixed-point integer math versions of some of our floating-point image functions

Definition in file env_image_ops.h.


Function Documentation

void env_dec_x ( const struct env_image src,
struct env_image result 
)

Decimate in X (take one every 'factor' pixels).

Definition at line 89 of file env_image_ops.c.

References env_dims::h, and env_dims::w.

Referenced by env_dec_xy().

void env_dec_xy ( const struct env_image src,
struct env_image result 
)

Decimate in X and Y (take one every 'factor' pixels).

Definition at line 48 of file env_image_ops.c.

References env_dec_x(), env_dec_y(), env_dims::h, and env_dims::w.

void env_dec_y ( const struct env_image src,
struct env_image result 
)

Decimate in Y (take one every 'factor' pixels).

Definition at line 118 of file env_image_ops.c.

References env_dims::h, and env_dims::w.

Referenced by env_dec_xy().

void env_get_rgby ( const struct env_rgb_pixel *const   src,
const struct env_rgb_pixel *const   src2,
const env_size_t  sz,
struct env_image rg,
struct env_image by,
const intg32  thresh,
const env_size_t  inputbits 
)

Compute R-G and B-Y opponent color maps.

If src2 is non-null, then average values from src and src2 together before any further processing (this may be useful in averaging noise out of noisy color input sources).

Definition at line 926 of file env_image_ops.c.

References env_img_size(), and lum.

Referenced by env_chan_color().

void env_merge_range ( const struct env_image src,
intg32 mi,
intg32 ma 
)

Update the range [mi,ma] to include the range of values in src.

Definition at line 1004 of file env_image_ops.c.

References env_img_size().

Referenced by EnvVisualCortex::input().

void env_pyr_build_lowpass_5 ( const struct env_image image,
env_size_t  firstlevel,
const struct env_math imath,
struct env_pyr result 
)

Wrapper for _cpu or _cuda version.

Definition at line 603 of file env_image_ops.c.

References env_img_initialized(), env_pyr_depth(), env_pyr_img(), and env_pyr_imgw().

Referenced by env_chan_color().

void env_pyr_build_lowpass_5_cpu ( const struct env_image image,
env_size_t  firstlevel,
const struct env_math imath,
struct env_pyr result 
)

_cpu version implemented here, see CUDA/env_cuda.h for GPU version

void env_rescale_range_inplace ( struct env_image src,
const intg32  mi,
const intg32  ma 
)

rescale the src image to a [0..255] result

Definition at line 1027 of file env_image_ops.c.

References env_img_size().

Referenced by EnvVisualCortex::input().

void env_shift_clean ( const struct env_image srcImg,
const env_ssize_t  dx,
const env_ssize_t  dy,
struct env_image result 
)

Shift an image by (dx, dy), without wraparound.

Generated on Sun May 8 08:42:40 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3