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

Calculate black and white bitmap out of the image. More...

Functions

function [
bwimage ,
image_grid ] = 
get_black_white_filter (img, darkthres, automatic, mask, grid_size, grid_coef, orientation, layer_id, thrMatrix)
 Calculate black and white bitmap out of the image. More...
 
function [
bwimage ,
image_grid , th_min ] = 
getblackwhitefilter>do_filter (I, mask, Options, exportThrMatrixSw, thresholdImage)
 

Detailed Description

Calculate black and white bitmap out of the image.

Function Documentation

function [ bwimage , image_grid ] = get_black_white_filter (   img,
  darkthres,
  automatic,
  mask,
  grid_size,
  grid_coef,
  orientation,
  layer_id,
  thrMatrix 
)

Calculate black and white bitmap out of the image.

Parameters
img- input image, img - [1:height,1:width,1:colors,1:stacks]
darkthres- a vector with minimal and maximal levels b/w threshold [minValue, maxValue]
automatic- automatically define b/w thereshold, when 1
mask- mask for the image, when only part of the image is needed
grid_size- detection of b/w threshold based on a grid when grid_size > 0
grid_coef- the coefficient for defining the minimal bw convertion value, if empty will be defined automatically
orientation- indicates dimension for 2D iterations, 1 - XZ, 2 - YZ, 4 - XY
layer_id- define a single slice from the dataset
  • when layer_id > 0 - threshold the slice with this number
  • when layer_id == 0 - threshold the whole dataset
  • when layer_id omitted - threshold the whole dataset
thrMatrix[optional] matrix with thresholding coefficients, default = NaN
Return values
bwimage- thresholded b/w image image_grid - image with the applied grid

References generate_grid_block_size(), and roiRegion.Options.

Referenced by ib_maskGenerator(), ManGridBW>startBtn_Callback(), and ManGridBW>thresholdsTable_CellEditCallback().

Here is the call graph for this function:

Here is the caller graph for this function:

function [bwimage , image_grid , th_min ] = getblackwhitefilter>do_filter (   I,
  mask,
  Options,
  exportThrMatrixSw,
  thresholdImage 
)