LLIPS
rev33
Light Library for Image ProcesS
|
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... | |
Motion detection fucntions.
Definition in file llips_motiondetect.h.
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()
p_img_base | t_img* - image used to create ouput image header |
p_img_target | t_img* - output image containing both area of change |
area_1 | t_area - change between image 1 and 2 |
area_2 | t_area - change between image 2 and 3 |
p_movement_origin | t_vect* - relative vector of the displacement from center of image |
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.
img_in1 | t_img* - first image |
img_in2 | t_img* - second image |
areasize | CPU_INT16U - size of research |
area_from_1 | t_pixel - what to look for |
raw_tolerance | CPU_INT16U - tolerance in % between two 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.
tolerance | CPU_INT16U - tolerance in % between two pixel |
quantity | CPU_INT16U - quantity of pixel change to evaluate change |
img_in1 | t_img* - first image |
img_in2 | t_img* - second image |
img_out | t_img* - img_in2 including area of change |
change_img | t_area* - aera containing pixel that changed between img_in1 and img_in2 |
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.
tolerance | CPU_INT16U - tolerance in % between two pixel |
quantity | CPU_INT16U - quantity of pixel change to evaluate change |
img_in1 | t_img* - first image |
img_in2 | t_img* - second image |
img_out | t_img* - img_in2 including area of change |
change_img | t_area* - aera containing pixel that changed between img_in1 and img_in2 |
Definition at line 211 of file llips_motiondetect.c.