Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
slicmex.c File Reference
#include <mex.h>
#include <stdio.h>
#include <math.h>
#include <float.h>
Include dependency graph for slicmex.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 PerformSuperpixelSLIC (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, double compactness)
 
void EnforceConnectivity (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

◆ EnforceConnectivity()

void EnforceConnectivity ( 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 EnforceConnectivity(), getLABXYSeeds(), PerformSuperpixelSLIC(), and rgbtolab().

Here is the call graph for this function:

◆ PerformSuperpixelSLIC()

void PerformSuperpixelSLIC ( 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,
double compactness )

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: