Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
mibGetStrelMask.m File Reference

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

Functions

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

Detailed Description

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

Function Documentation

◆ mibGetStrelMask()

function mask = mibGetStrelMask ( 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
  • .cpuParallelLimit -> number of CPU available for parallel processing
Return values
maskgenerated mask image [1:height,1:width,1:no_stacks], (0/1);
Required fields of Options:

References max, and min.

Referenced by mibController.mibMaskGenerator().

Here is the caller graph for this function: