Defines | Functions
slic.c File Reference

SLIC superpixels - Definition. More...

#include "slic.h"
#include "mathop.h"
#include <math.h>
#include <string.h>
Include dependency graph for slic.c:

Go to the source code of this file.

Defines

#define atEdgeMap(x, y)   edgeMap[(x)+(y)*width]
#define atimage(x, y, k)   image[(x)+(y)*width+(k)*width*height]

Functions

void vl_slic_segment (vl_uint32 *segmentation, float const *image, vl_size width, vl_size height, vl_size numChannels, vl_size regionSize, float regularization, vl_size minRegionSize)
 SLIC superpixel segmentation.

Detailed Description

SLIC superpixels - Definition.

Author:
Andrea Vedaldi

Definition in file slic.c.


Define Documentation

#define atEdgeMap (   x,
 
)    edgeMap[(x)+(y)*width]
#define atimage (   x,
  y,
 
)    image[(x)+(y)*width+(k)*width*height]

Function Documentation

void vl_slic_segment ( vl_uint32 segmentation,
float const *  image,
vl_size  width,
vl_size  height,
vl_size  numChannels,
vl_size  regionSize,
float  regularization,
vl_size  minRegionSize 
)

SLIC superpixel segmentation.

Parameters:
segmentationsegmentation.
imageimage to segment.
widthimage width.
heightimage height.
numChannelsnumber of image channels (depth).
regionSizenominal size of the regions.
regularizationtrade-off between appearance and spatial terms.
minRegionSizeminimum size of a segment.

The function computes the SLIC superpixels of the specified image image. image is a pointer to an width by height by by numChannles array of float. segmentation is a pointer to a width by height array of vl_uint32. segmentation contain the labels of each image pixels, from 0 to the number of regions minus one.

See also:
Overview, Technical details

Definition at line 170 of file slic.c.



libvlfeat
Author(s): Andrea Vedaldi
autogenerated on Thu Jun 6 2019 20:25:52