Tabnine Logo
ImageRectangle.intersection
Code IndexAdd Tabnine to your IDE (free)

How to use
intersection
method
in
boofcv.struct.ImageRectangle

Best Java code snippets using boofcv.struct.ImageRectangle.intersection (Showing top 1 results out of 315)

origin: org.boofcv/recognition

/**
 * Computes the fractional area of intersection between the two regions.
 *
 * @return number from 0 to 1.  higher means more intersection
 */
public double computeOverlap( ImageRectangle a , ImageRectangle b ) {
  if( !a.intersection(b,work) )
    return 0;
  int areaI = work.area();
  int bottom = a.area() + b.area() - areaI;
  return areaI/ (double)bottom;
}
boofcv.structImageRectangleintersection

Popular methods of ImageRectangle

  • set
  • <init>
  • area
  • getHeight
  • getWidth

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • JLabel (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now