Codota Logo
FillResult
Code IndexAdd Codota to your IDE (free)

How to use
FillResult
in
jaitools.imageutils

Best Java code snippets using jaitools.imageutils.FillResult (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: com.googlecode.jaitools/regionalize

/**
 * Constructor is package-private.
 */
Region(FillResult fill) {
  this.id = fill.getID();
  this.refValue = fill.getValue();
  this.bounds = fill.getBounds();
  this.numPixels = fill.getNumPixels();
}
origin: com.googlecode.jaitools/jt-utils

/**
 * Merges the given region into this region.
 * <p>
 * 
 * At present, this method doesn't bother about merging scan segments,
 * it just adds the other region's segments and updates the index
 * and bounds as necessary.
 * 
 * @param other other region
 */
public void expand(FillResult other) {
  bounds = bounds.union(other.bounds);
  for (FloodFiller.ScanSegment otherSeg : other.segments) {
    segments.add(otherSeg);
    addToIndex(otherSeg, segments.size()-1);
  }
  numPixels += other.numPixels;
}
origin: com.googlecode.jaitools/jt-utils

return new FillResult(fillValue, refValue, segmentsFilled);
origin: com.googlecode.jaitools/jt-utils

addToIndex(segment, 0);
    addToIndex(segment, k++);
origin: com.googlecode.jaitools/jt-regionalize

/**
 * Constructor is package-private.
 */
Region(FillResult fill) {
  this.id = fill.getID();
  this.refValue = fill.getValue();
  this.bounds = fill.getBounds();
  this.numPixels = fill.getNumPixels();
}
jaitools.imageutilsFillResult

Javadoc

This class is used by the RegionalizeOpImage and FloodFillerto record data describing an image region that has just been flood-filled.

Although public, it is not intended for general use unless you are modifying or sub-classing the flood fill classes.

Most used methods

  • getBounds
    Gets the bounds of this region.
  • getID
    Gets the ID of this region.
  • getNumPixels
    Gets the number of pixels within this region.
  • getValue
    Gets the reference value of this region. This is the value of the start pixel used in the regionaliz
  • <init>
    Constructor. Takes ownership of the list of segments.
  • addToIndex
    Adds a segment to the index. This is used to improve the performance of the #contains(int,int) metho

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • setContentView (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Collectors (java.util.stream)
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now