|
ImageScience 3.0.0 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectimagescience.segment.Thresholder
public class Thresholder
Thresholds images.
Field Summary | |
---|---|
Messenger |
messenger
The object used for message displaying. |
Progressor |
progressor
The object used for progress displaying. |
Constructor Summary | |
---|---|
Thresholder()
Default constructor. |
Method Summary | |
---|---|
void |
hard(Image image,
double threshold)
Applies hard thresholding to an image. |
void |
hysteresis(Image image,
double low,
double high)
Applies hysteresis thresholding to an image. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Messenger messenger
public final Progressor progressor
Constructor Detail |
---|
public Thresholder()
Method Detail |
---|
public void hard(Image image, double threshold)
image
- The input image to be thresholded. The image is overwritten with the thresholding results.threshold
- The threshold value. Elements with a value larger than or equal to threshold
are set to 255
, and elements with a value less than threshold
are set to 0
.
java.lang.NullPointerException
- If image
is null
.public void hysteresis(Image image, double low, double high)
image
- The input image to be thresholded. The image is overwritten with the thresholding results.low
- high
- The lower and higher threshold values that define the hysteresis. Elements with a value larger than or equal to high
are set to 255
, elements with a value less than low
are set to 0
, and elements with a value larger than or equal to the low
are set to 255
only if they are connected to elements with a value larger than or equal to high
through elements all with a value larger than or equal to low
. If the size of the image in the z-dimension equals 1
, this method uses 8-connectivity in x-y space, otherwise it uses 26-connectivity in x-y-z space. The algorithm is applied to every x-y(-z) subimage in a 5D image.
java.lang.NullPointerException
- If image
image is null
.
|
ImageScience 3.0.0 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) Erik Meijering. Permission to use this software and corresponding documentation for educational, research, and not-for-profit purposes, without a fee and without a signed licensing agreement, is granted, subject to the following terms and conditions.
IT IS NOT ALLOWED TO REDISTRIBUTE, SELL, OR LEASE THIS SOFTWARE, OR DERIVATIVE WORKS THEREOF, WITHOUT PERMISSION IN WRITING FROM THE COPYRIGHT HOLDER. THE COPYRIGHT HOLDER IS FREE TO MAKE VERSIONS OF THE SOFTWARE AVAILABLE FOR A FEE OR COMMERCIALLY ONLY.
IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OF ANY KIND WHATSOEVER, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE EXPRESS OR IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE AND CORRESPONDING DOCUMENTATION IS PROVIDED "AS IS". THE COPYRIGHT HOLDER HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.