![]() |
Microscopy Image Browser 2.91
MIB
|
#include <mex.h>#include <stdio.h>#include <math.h>#include <float.h>
Functions | |
| void | rgbtolab (int *rin, int *gin, int *bin, int sz, double *lvec, double *avec, double *bvec) |
| void | getLABXYSeeds (int STEP, int width, int height, int *seedIndices, int *numseeds) |
| void | PerformSuperpixelSLICO (double *lvec, double *avec, double *bvec, double *kseedsl, double *kseedsa, double *kseedsb, double *kseedsx, double *kseedsy, int width, int height, int numseeds, int *klabels, int STEP) |
| void | EnforceSuperpixelConnectivity (int *labels, int width, int height, int numSuperpixels, int *nlabels, int *finalNumberOfLabels) |
| void | mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) |
| void EnforceSuperpixelConnectivity | ( | int * | labels, |
| int | width, | ||
| int | height, | ||
| int | numSuperpixels, | ||
| int * | nlabels, | ||
| int * | finalNumberOfLabels ) |
| void getLABXYSeeds | ( | int | STEP, |
| int | width, | ||
| int | height, | ||
| int * | seedIndices, | ||
| int * | numseeds ) |
| void mexFunction | ( | int | nlhs, |
| mxArray * | plhs[], | ||
| int | nrhs, | ||
| const mxArray * | prhs[] ) |
References EnforceSuperpixelConnectivity(), getLABXYSeeds(), PerformSuperpixelSLICO(), and rgbtolab().

| void PerformSuperpixelSLICO | ( | double * | lvec, |
| double * | avec, | ||
| double * | bvec, | ||
| double * | kseedsl, | ||
| double * | kseedsa, | ||
| double * | kseedsb, | ||
| double * | kseedsx, | ||
| double * | kseedsy, | ||
| int | width, | ||
| int | height, | ||
| int | numseeds, | ||
| int * | klabels, | ||
| int | STEP ) |
PerformSuperpixelSLICO
This function picks the maximum value of color distance as compact factor M. So there is no need to input a constant value of M and S. There are two advantages:
[1] The algorithm now better handles both textured and non-textured regions [2] There is not need to set any parameters!!!
SLICO (or SLIC Zero) dynamically varies only the compactness factor, not the step size S.
References n.
Referenced by mexFunction().

| void rgbtolab | ( | int * | rin, |
| int * | gin, | ||
| int * | bin, | ||
| int | sz, | ||
| double * | lvec, | ||
| double * | avec, | ||
| double * | bvec ) |
References B().
Referenced by mexFunction().

