LLIPS  rev33
Light Library for Image ProcesS
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
llips_motiondetect.h File Reference

Motion detection fucntions. More...

Go to the source code of this file.

Functions

CPU_CHAR search_diff (CPU_INT16U tolerance, CPU_INT16U quantity, t_img *img_in1, t_img *img_in2, t_img *img_out, t_area *change_img)
 Search for difference between two images, using given tolerance and quantity change criteria. More...
 
t_vect evaluate_move (t_img *p_img_base, t_img *p_img_target, t_area area_1, t_area area_2, t_vect *p_movement_origin)
 Evaluate mouvement direction between three sequencial images that have been previously processed by search_diff() More...
 
CPU_CHAR search_diff_x (CPU_INT16U tolerance, CPU_INT16U quantity, t_img *img_in1, t_img *img_in2, t_img *img_out, t_area *change_img)
 Search for difference between two images, using given tolerance and quantity change criteria, but trying to find an horizontal move. More...
 
t_pixel look_for_match (t_img *img_in1, t_img *img_in2, CPU_INT16U areasize, t_pixel area_from_1, CPU_INT16U raw_tolerance)
 Try to find a correspondance from an area from image 1 in image 2. More...
 

Detailed Description

Motion detection fucntions.

Author
MPE

Definition in file llips_motiondetect.h.

Function Documentation

t_vect evaluate_move ( t_img p_img_base,
t_img p_img_target,
t_area  area_1,
t_area  area_2,
t_vect p_movement_origin 
)

Evaluate mouvement direction between three sequencial images that have been previously processed by search_diff()

Parameters
p_img_baset_img* - image used to create ouput image header
p_img_targett_img* - output image containing both area of change
area_1t_area - change between image 1 and 2
area_2t_area - change between image 2 and 3
p_movement_origint_vect* - relative vector of the displacement from center of image
Returns
t_vect - absolute vector of the displacement

Definition at line 141 of file llips_motiondetect.c.

t_pixel look_for_match ( t_img img_in1,
t_img img_in2,
CPU_INT16U  areasize,
t_pixel  area_from_1,
CPU_INT16U  raw_tolerance 
)

Try to find a correspondance from an area from image 1 in image 2.

Warning
NOT FUNCTIONNAL
Parameters
img_in1t_img* - first image
img_in2t_img* - second image
areasizeCPU_INT16U - size of research
area_from_1t_pixel - what to look for
raw_toleranceCPU_INT16U - tolerance in % between two pixel
Returns
t_pixel

Definition at line 338 of file llips_motiondetect.c.

CPU_CHAR search_diff ( CPU_INT16U  tolerance,
CPU_INT16U  quantity,
t_img img_in1,
t_img img_in2,
t_img img_out,
t_area change_img 
)

Search for difference between two images, using given tolerance and quantity change criteria.

Parameters
toleranceCPU_INT16U - tolerance in % between two pixel
quantityCPU_INT16U - quantity of pixel change to evaluate change
img_in1t_img* - first image
img_in2t_img* - second image
img_outt_img* - img_in2 including area of change
change_imgt_area* - aera containing pixel that changed between img_in1 and img_in2
Returns
CPU_CHAR - status of operation

status of operation is combination of NO_DIFF no diff detected DIFF_SIZE size is different DIFF_BLUE difference on blue pixel DIFF_GREEN difference on blue pixel DIFF_RED difference on blue pixel DIFF_HIGH_QUANTITY globally high quantity of change

Definition at line 42 of file llips_motiondetect.c.

CPU_CHAR search_diff_x ( CPU_INT16U  tolerance,
CPU_INT16U  quantity,
t_img img_in1,
t_img img_in2,
t_img img_out,
t_area change_img 
)

Search for difference between two images, using given tolerance and quantity change criteria, but trying to find an horizontal move.

Warning
NOT FUNCTIONNAL
Parameters
toleranceCPU_INT16U - tolerance in % between two pixel
quantityCPU_INT16U - quantity of pixel change to evaluate change
img_in1t_img* - first image
img_in2t_img* - second image
img_outt_img* - img_in2 including area of change
change_imgt_area* - aera containing pixel that changed between img_in1 and img_in2
Returns
CPU_CHAR - status of operation

Definition at line 211 of file llips_motiondetect.c.