Tabnine Logo
GImageStatistics.max
Code IndexAdd Tabnine to your IDE (free)

How to use
max
method
in
boofcv.alg.misc.GImageStatistics

Best Java code snippets using boofcv.alg.misc.GImageStatistics.max (Showing top 2 results out of 315)

origin: org.boofcv/boofcv-ip

private T ensureMaxValueOfOne(T input, double maxPixelValue) {
  T adjusted;
  if( maxPixelValue < 0 ) {
    maxPixelValue = GImageStatistics.max(input);
  }
  if( maxPixelValue != 1.0f ) {
    adjusted = this.adjusted;
    GPixelMath.divide(input, maxPixelValue, adjusted);
  } else {
    adjusted = input;
  }
  return adjusted;
}
origin: org.boofcv/feature

float max1 = (float)GImageStatistics.max(image1);
float max2 = (float)GImageStatistics.max(image2);
float min1 = (float)GImageStatistics.min(image1);
float min2 = (float)GImageStatistics.min(image2);
boofcv.alg.miscGImageStatisticsmax

Javadoc

Returns the maximum pixel value across all bands.

Popular methods of GImageStatistics

  • maxAbs
    Returns the absolute value of the element with the largest absolute value, across all bands
  • histogram
    Computes the histogram of intensity values for the image. For floating point images it is rounded to
  • mean
    Returns the mean pixel intensity value.
  • min
    Returns the minimum pixel value across all bands
  • sum
    Returns the sum of all the pixels in the image across all bands.

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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