Available Methods
- getWidth ( )
- getHeight ( )
- set ( )
- getf ( )
- get ( )
- fill ( )
- duplicate ( )
- setf ( )
- setValue ( )
- invert ( )
- setRoi ( )
- createProcessor ( )
- getPixelCount ( )
- setColor ( )
- resetMinAndMax ( )
- setLut ( )
- setMinAndMax ( )
- invertLut ( )
- setPixels ( )
- isInvertedLut ( )
- createImage ( )
- getRoi ( )
- getMax ( )
- setSnapshotCopyMode ( )
- getPixelValue ( )
- getPixels ( )
- getMinThreshold ( )
- convertToFloat ( )
- setColorModel ( )
Related Classes
- java.io.File
- java.util.Iterator
- java.util.concurrent.Executors
- java.util.concurrent.ExecutorService
- java.util.concurrent.atomic.AtomicInteger
- java.util.TreeMap
- java.util.concurrent.Callable
- java.util.concurrent.ExecutionException
- java.util.concurrent.Future
- java.util.TreeSet
- java.awt.image.BufferedImage
- java.awt.Color
- java.awt.Graphics2D
- java.awt.Rectangle
- java.awt.Image
- java.awt.Point
- java.awt.geom.AffineTransform
- java.awt.geom.Point2D
- java.awt.image.WritableRaster
- org.apache.spark.SparkConf
- java.awt.image.ColorModel
- org.apache.spark.api.java.JavaSparkContext
- org.apache.spark.api.java.JavaRDD
- java.awt.geom.Area
- org.apache.spark.api.java.function.Function
Java Code Examples for ij.process.ImageProcessor#getPixelValue()
The following examples show how to use
ij.process.ImageProcessor#getPixelValue() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IJHysteresis.java From orbit-image-analysis with GNU General Public License v3.0 | 6 votes |
/** * Double thresholding * * @param ima original image * @param T1 high threshold * @param T2 low threshold * @return "trinarised" image */ ImageProcessor trin(ImageProcessor ima, float T1, float T2) { int la = ima.getWidth(); int ha = ima.getHeight(); ByteProcessor res = new ByteProcessor(la, ha); float pix; for (int x = 0; x < la; x++) { for (int y = 0; y < ha; y++) { pix = ima.getPixelValue(x, y); if (pix >= T1) { res.putPixel(x, y, 255); } else if (pix >= T2) { res.putPixel(x, y, 128); } } } return res; }