Quick shift - Definition. More...
#include "quickshift.h"
#include "mathop.h"
#include <string.h>
#include <math.h>
#include <stdio.h>
Go to the source code of this file.
Functions | |
void | vl_quickshift_delete (VlQS *q) |
Delete quick shift object. | |
VL_INLINE vl_qs_type | vl_quickshift_distance (vl_qs_type const *I, int N1, int N2, int K, int i1, int i2, int j1, int j2) |
VL_INLINE vl_qs_type | vl_quickshift_inner (vl_qs_type const *I, int N1, int N2, int K, int i1, int i2, int j1, int j2) |
VL_EXPORT VlQS * | vl_quickshift_new (vl_qs_type const *image, int height, int width, int channels) |
Create a quick shift object. | |
VL_EXPORT void | vl_quickshift_process (VlQS *q) |
Create a quick shift objet. |
Quick shift - Definition.
Definition in file quickshift.c.
void vl_quickshift_delete | ( | VlQS * | q | ) |
Delete quick shift object.
-----------------------------------------------------------------
q | quick shift object. |
Definition at line 456 of file quickshift.c.
VL_INLINE vl_qs_type vl_quickshift_distance | ( | vl_qs_type const * | I, |
int | N1, | ||
int | N2, | ||
int | K, | ||
int | i1, | ||
int | i2, | ||
int | j1, | ||
int | j2 | ||
) |
-----------------------------------------------------------------
Definition at line 154 of file quickshift.c.
VL_INLINE vl_qs_type vl_quickshift_inner | ( | vl_qs_type const * | I, |
int | N1, | ||
int | N2, | ||
int | K, | ||
int | i1, | ||
int | i2, | ||
int | j1, | ||
int | j2 | ||
) |
-----------------------------------------------------------------
Definition at line 198 of file quickshift.c.
VL_EXPORT VlQS* vl_quickshift_new | ( | vl_qs_type const * | image, |
int | height, | ||
int | width, | ||
int | channels | ||
) |
Create a quick shift object.
-----------------------------------------------------------------
image | the image. |
height | the height (number of rows) of the image. |
width | the width (number of columns) of the image. |
channels | the number of channels of the image. |
The image
is an array of vl_qs_type values with three dimensions (respectively widht
, height
, and channels
). Typically, a color (e.g, RGB) image has three channels. The linear index of a pixel is computed with: channels
* width*
height
+ row
+ height
* col
.
Definition at line 231 of file quickshift.c.
VL_EXPORT void vl_quickshift_process | ( | VlQS * | q | ) |
Create a quick shift objet.
-----------------------------------------------------------------
q | quick shift object. |
Definition at line 258 of file quickshift.c.