Microscopy Image Browser  1.233
All Classes Files Functions Variables Pages
regiongrowing.m File Reference

REGIONGROWING A MEXed 2D/3D region growing algorithm. More...

Functions

function lMask = RegionGrowing (dImg, dMaxDif, iSeed)
 REGIONGROWING A MEXed 2D/3D region growing algorithm. More...
 
function iSeed = regiongrowing>fGetSeed (dImg)
 

Detailed Description

REGIONGROWING A MEXed 2D/3D region growing algorithm.

Function Documentation

function iSeed = regiongrowing>fGetSeed (   dImg)
function lMask = RegionGrowing (   dImg,
  dMaxDif,
  iSeed 
)

REGIONGROWING A MEXed 2D/3D region growing algorithm.

lMASK = REGIONGROWING(dIMG, dMAXDIF, iSEED) Returns a binary mask lMASK, the result of growing a region from the seed point iSEED. The stoping critereon is fulfilled if no voxels in the region's 4-neighbourhood have an intensity difference smaller than dMAXDIF to the region's mean intensity.

If the seed point is not supplied, a GUI lets you select it. If no output is requested, the result of the region growing is visualized

IMPORTANT NOTE: This Matlab function is a front-end for a fast mex function. Compile it by making the directiory containing this file your current Matlab working directory and typing

mex RegionGrowing_mex.cpp

in the Matlab console.

Example (requires image processing toolbox)

Gives variable D; <- segments the background

Copyright 2013 Christian Wuerslin, University of Tuebingen and University of Stuttgart, Germany. Contact: chris.nosp@m.tian.nosp@m..wuer.nosp@m.slin.nosp@m.@med..nosp@m.uni-.nosp@m.tuebi.nosp@m.ngen.nosp@m..de