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

Return Strel mask (imtophat/imbothat) generated from the img. More...

Functions

function mask = getStrelMask (img, Options)
 Return Strel mask (imtophat/imbothat) generated from the img. More...
 

Detailed Description

Return Strel mask (imtophat/imbothat) generated from the img.

Function Documentation

function mask = getStrelMask (   img,
  Options 
)

Return Strel mask (imtophat/imbothat) generated from the img.

Parameters
img-> input image, [1:height, 1:width, 1:color, 1:layers]
Options-> a structure with Parameters
  • .se_size -> size of the structural element, vector (xy, z)
  • .bwthreshold -> threshold value for mask generation
  • .sizefilter -> size exclusion limit, the objects that are smaller than this number will be removed.
  • .strelfill -> fill the holes in the resulted image
  • .blackwhite -> switch that defines that the background is white (1), or black (0)
  • .threeD -> 3d switch (1-3d space, 0-2d space)
  • .all_sw -> indicates full stack or single layer
  • .orientation -> indicates dimension for 2d iterations, 1-for XZ, 2 - YZ, 4 -XY
  • .currentIndex -> index of the current slice
Return values
maskgenerated mask image [1:height,1:width,1:no_stacks], (0/1);
Required fields of Options:

Referenced by ib_maskGenerator().

Here is the caller graph for this function: