Quick shift (Quick shift image segmentation)
More...
#include "generic.h"
#include "mathop.h"
- Author
- Andrea Vedaldi
-
Brian Fulkerson
◆ vl_quickshift_delete()
void vl_quickshift_delete |
( |
VlQS * |
q | ) |
|
◆ vl_quickshift_get_density()
- Parameters
-
- Returns
- the estimate of the density at each pixel.
◆ vl_quickshift_get_dists()
- Parameters
-
- Returns
- for each pixel, the distance in feature space to the pixel that is its parent in the quick shift tree. The distance is set to 'inf' if the pixel is a root node.
◆ vl_quickshift_get_kernel_size()
- Parameters
-
- Returns
- the standard deviation of the kernel used in the Parzen density estimate.
◆ vl_quickshift_get_max_dist()
- Parameters
-
- Returns
- the maximum distance in the feature space between nodes in the quick shift tree.
◆ vl_quickshift_get_medoid()
- Parameters
-
- Returns
true
if medoid shift is used instead of quick shift.
◆ vl_quickshift_get_parents()
int * vl_quickshift_get_parents |
( |
VlQS const * |
q | ) |
|
|
inline |
- Parameters
-
- Returns
- a
height
x width
matrix where each element contains the linear index of its parent node. The node is a root if its value is its own linear index.
◆ vl_quickshift_new()
VlQS* vl_quickshift_new |
( |
vl_qs_type const * |
image, |
|
|
int |
height, |
|
|
int |
width, |
|
|
int |
channels |
|
) |
| |
- Parameters
-
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. |
- Returns
- new quick shift object.
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
.
◆ vl_quickshift_process()
void vl_quickshift_process |
( |
VlQS * |
q | ) |
|
◆ vl_quickshift_set_kernel_size()
- Parameters
-
q | quick shift object. |
sigma | standard deviation of the kernel used in the Parzen density estimate. |
◆ vl_quickshift_set_max_dist()
- Parameters
-
q | quick shift object. |
tau | the maximum distance in the feature space between nodes in the quick shift tree. |
◆ vl_quickshift_set_medoid()
void vl_quickshift_set_medoid |
( |
VlQS * |
q, |
|
|
vl_bool |
medoid |
|
) |
| |
|
inline |
- Parameters
-
q | quick shift object. |
medoid | true to use kernelized medoid shift, false (default) uses quick shift. |