Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
slicomex.c File Reference
#include <mex.h>
#include <stdio.h>
#include <math.h>
#include <float.h>
Include dependency graph for slicomex.c:

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[])
 

Function Documentation

◆ EnforceSuperpixelConnectivity()

void EnforceSuperpixelConnectivity ( int * labels,
int width,
int height,
int numSuperpixels,
int * nlabels,
int * finalNumberOfLabels )

References n.

Referenced by mexFunction().

Here is the caller graph for this function:

◆ getLABXYSeeds()

void getLABXYSeeds ( int STEP,
int width,
int height,
int * seedIndices,
int * numseeds )

References n.

Referenced by mexFunction().

Here is the caller graph for this function:

◆ mexFunction()

void mexFunction ( int nlhs,
mxArray * plhs[],
int nrhs,
const mxArray * prhs[] )

References EnforceSuperpixelConnectivity(), getLABXYSeeds(), PerformSuperpixelSLICO(), and rgbtolab().

Here is the call graph for this function:

◆ PerformSuperpixelSLICO()

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().

Here is the caller graph for this function:

◆ rgbtolab()

void rgbtolab ( int * rin,
int * gin,
int * bin,
int sz,
double * lvec,
double * avec,
double * bvec )

References B().

Referenced by mexFunction().

Here is the call graph for this function:
Here is the caller graph for this function: