![]() |
Microscopy Image Browser
1.233
|
D=BWDISTSC1(BW,ASPECT,MAXVAL) BWDISTSC1 computes Euclidean distance transform of a binary 3D image BW out to a specified value MAXVAL. This allows accelerating the calculations in some cases with strongly nonconvex geometries, if the distance transform only needs to be calculated out to a specific value. The distance transform assigns to each pixel in BW a number that is the distance from that pixel to the nearest nonzero pixel in BW. BW may be a 3D array or a cell array of 2D slices. BWDISTSC1 can also accept regular 2D images. ASPECT is a 3-component vector defining the aspect ratios to use when calculating the distances in BW. If ASPECT is not set, isotropic aspect ratio [1 1 1] is used. If MAXVAL is specified, the distance transform will be only calculated out to the value MAXVAL. More...
Functions | |
function D = | bwdistsc1 (bw, aspect, maxval) |
D=BWDISTSC1(BW,ASPECT,MAXVAL) BWDISTSC1 computes Euclidean distance transform of a binary 3D image BW out to a specified value MAXVAL. This allows accelerating the calculations in some cases with strongly nonconvex geometries, if the distance transform only needs to be calculated out to a specific value. The distance transform assigns to each pixel in BW a number that is the distance from that pixel to the nearest nonzero pixel in BW. BW may be a 3D array or a cell array of 2D slices. BWDISTSC1 can also accept regular 2D images. ASPECT is a 3-component vector defining the aspect ratios to use when calculating the distances in BW. If ASPECT is not set, isotropic aspect ratio [1 1 1] is used. If MAXVAL is specified, the distance transform will be only calculated out to the value MAXVAL. More... | |
function s = | bwdistsc1>getregions (map, UseRegionProps) |
function vn = | bwdistsc1>VersionNewerThan (v_ref, AllowEqual) |
function vd = | bwdistsc1>str2numarray (vs, VerSeparator) |
D=BWDISTSC1(BW,ASPECT,MAXVAL) BWDISTSC1 computes Euclidean distance transform of a binary 3D image BW out to a specified value MAXVAL. This allows accelerating the calculations in some cases with strongly nonconvex geometries, if the distance transform only needs to be calculated out to a specific value. The distance transform assigns to each pixel in BW a number that is the distance from that pixel to the nearest nonzero pixel in BW. BW may be a 3D array or a cell array of 2D slices. BWDISTSC1 can also accept regular 2D images. ASPECT is a 3-component vector defining the aspect ratios to use when calculating the distances in BW. If ASPECT is not set, isotropic aspect ratio [1 1 1] is used. If MAXVAL is specified, the distance transform will be only calculated out to the value MAXVAL.
function D = bwdistsc1 | ( | bw, | |
aspect, | |||
maxval | |||
) |
D=BWDISTSC1(BW,ASPECT,MAXVAL) BWDISTSC1 computes Euclidean distance transform of a binary 3D image BW out to a specified value MAXVAL. This allows accelerating the calculations in some cases with strongly nonconvex geometries, if the distance transform only needs to be calculated out to a specific value. The distance transform assigns to each pixel in BW a number that is the distance from that pixel to the nearest nonzero pixel in BW. BW may be a 3D array or a cell array of 2D slices. BWDISTSC1 can also accept regular 2D images. ASPECT is a 3-component vector defining the aspect ratios to use when calculating the distances in BW. If ASPECT is not set, isotropic aspect ratio [1 1 1] is used. If MAXVAL is specified, the distance transform will be only calculated out to the value MAXVAL.
BWDISTSC1 uses the same algorithm as BWDISTSC but without forward- backward scan.
BWDISTSC1 tries to use MATLAB's bwdist for 2D scans if possible, which is faster. Otherwise BWDISTSC1 will use its own algorithm for 2D scans. Also incorporates the fix for Matlab version detection bug in the original BWDISTSC contributed by Tudor Dima.
(c) Yuriy Mishchenko HHMI JFRC Chklovskii Lab JUL 2007 This function written Yuriy Mishchenko JUL 2011 This function updated Yuriy Mishchenko SEP 2013
function s = bwdistsc1>getregions | ( | map, | |
UseRegionProps | |||
) |
function vd = bwdistsc1>str2numarray | ( | vs, | |
VerSeparator | |||
) |
function vn = bwdistsc1>VersionNewerThan | ( | v_ref, | |
AllowEqual | |||
) |