Tabnine Logo
boofcv.alg.misc
Code IndexAdd Tabnine to your IDE (free)

How to use boofcv.alg.misc

Best Java code snippets using boofcv.alg.misc (Showing top 20 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/boofcv-ip

/**
 * Returns the maximum element value.
 * 
 * @param input Input image. Not modified.
 * @return Maximum pixel value.
 */
public static int maxAbs( GrayS8 input ) {
  return maxAbs( input.data, input.startIndex, input.height, input.width , input.stride );
}
origin: org.boofcv/boofcv-ip

/**
 * Returns the maximum element value.
 * 
 * @param input Input image. Not modified.
 * @return Maximum pixel value.
 */
public static int max( GrayS32 input ) {
  return max( input.data, input.startIndex, input.height, input.width , input.stride );
}
origin: org.boofcv/boofcv-ip

/**
 * Returns the mean pixel intensity value.
 * 
 * @param img Input image.  Not modified.
 * @return Mean pixel intensity value
 */
public static float mean( GrayF32 img ) {
  return sum(img)/(float)(img.width*img.height);
}
origin: org.boofcv/boofcv-ip

/**
 * Computes the variance of pixel intensity values for a GrayU8 image represented by the given histogram.
 *
 * @param histogram Histogram with N bins
 * @param mean Mean of the image.
 * @param N number of bins in the histogram.
 * @return variance
 */
public static double variance(int[] histogram, double mean , int N ) {
  return variance(histogram, mean, count(histogram,N), N);
}
origin: org.boofcv/boofcv-ip

/**
 * Returns the minimum element value.
 * 
 * @param input Input image. Not modified.
 * @return Minimum pixel value.
 */
public static int min( InterleavedS8 input ) {
  return min( input.data, input.startIndex, input.height, input.width*input.numBands , input.stride );
}
origin: org.boofcv/boofcv-ip

/**
 * Returns the maximum element value.
 * 
 * @param input Input image. Not modified.
 * @return Maximum pixel value.
 */
public static int max( GrayU16 input ) {
  return maxU( input.data, input.startIndex, input.height, input.width , input.stride );
}
origin: org.boofcv/boofcv-ip

/**
 * Returns the minimum element value.
 * 
 * @param input Input image. Not modified.
 * @return Minimum pixel value.
 */
public static int min( GrayU16 input ) {
  return minU( input.data, input.startIndex, input.height, input.width , input.stride );
}
origin: org.boofcv/boofcv-ip

/**
 * Returns the maximum element value.
 * 
 * @param input Input image. Not modified.
 * @return Maximum pixel value.
 */
public static int maxAbs( InterleavedU8 input ) {
  return maxAbsU( input.data, input.startIndex, input.height, input.width*input.numBands , input.stride );
}
origin: org.boofcv/boofcv-ip

/**
 * Returns the maximum element value.
 * 
 * @param input Input image. Not modified.
 * @return Maximum pixel value.
 */
public static int maxAbs( InterleavedS16 input ) {
  return maxAbs( input.data, input.startIndex, input.height, input.width*input.numBands , input.stride );
}
origin: org.boofcv/boofcv-ip

/**
 * Returns the maximum element value.
 * 
 * @param input Input image. Not modified.
 * @return Maximum pixel value.
 */
public static float max( InterleavedF32 input ) {
  return max( input.data, input.startIndex, input.height, input.width*input.numBands , input.stride );
}
origin: org.boofcv/boofcv-ip

/**
 * Returns the mean pixel intensity value.
 * 
 * @param img Input image.  Not modified.
 * @return Mean pixel intensity value
 */
public static double mean( InterleavedF64 img ) {
  return sum(img)/(double)(img.width*img.height*img.numBands);
}
origin: org.boofcv/boofcv-ip

/**
 * Returns the minimum element value.
 * 
 * @param input Input image. Not modified.
 * @return Minimum pixel value.
 */
public static int min( GrayS32 input ) {
  return min( input.data, input.startIndex, input.height, input.width , input.stride );
}
origin: org.boofcv/boofcv-ip

/**
 * Returns the maximum element value.
 * 
 * @param input Input image. Not modified.
 * @return Maximum pixel value.
 */
public static int max( InterleavedU8 input ) {
  return maxU( input.data, input.startIndex, input.height, input.width*input.numBands , input.stride );
}
origin: org.boofcv/boofcv-ip

/**
 * Returns the maximum element value.
 * 
 * @param input Input image. Not modified.
 * @return Maximum pixel value.
 */
public static long maxAbs( InterleavedS64 input ) {
  return maxAbs( input.data, input.startIndex, input.height, input.width*input.numBands , input.stride );
}
origin: org.boofcv/boofcv-ip

/**
 * Returns the maximum element value.
 * 
 * @param input Input image. Not modified.
 * @return Maximum pixel value.
 */
public static int max( InterleavedS32 input ) {
  return max( input.data, input.startIndex, input.height, input.width*input.numBands , input.stride );
}
origin: org.boofcv/boofcv-ip

/**
 * Returns the mean pixel intensity value.
 * 
 * @param img Input image.  Not modified.
 * @return Mean pixel intensity value
 */
public static double mean( GrayS8 img ) {
  return sum(img)/(double)(img.width*img.height);
}
origin: org.boofcv/boofcv-ip

/**
 * Returns the minimum element value.
 * 
 * @param input Input image. Not modified.
 * @return Minimum pixel value.
 */
public static float min( InterleavedF32 input ) {
  return min( input.data, input.startIndex, input.height, input.width*input.numBands , input.stride );
}
origin: org.boofcv/boofcv-ip

/**
 * Returns the maximum element value.
 * 
 * @param input Input image. Not modified.
 * @return Maximum pixel value.
 */
public static int maxAbs( InterleavedS32 input ) {
  return maxAbs( input.data, input.startIndex, input.height, input.width*input.numBands , input.stride );
}
origin: org.boofcv/boofcv-ip

/**
 * Returns the mean pixel intensity value.
 * 
 * @param img Input image.  Not modified.
 * @return Mean pixel intensity value
 */
public static double mean( InterleavedS8 img ) {
  return sum(img)/(double)(img.width*img.height*img.numBands);
}
boofcv.alg.misc

Most used classes

  • ImageStatistics
    Computes statistical properties of pixels inside an image.DO NOT MODIFY: Generated by boofcv.alg.mis
  • PixelMath
    Functions which perform basic arithmetic (e.g. addition, subtraction, multiplication, or division) o
  • GImageMiscOps
    Generalized version of ImageMiscOps. Type checking is performed at runtime instead of at compile typ
  • ImageMiscOps
    Basic image operations which have no place better to go.DO NOT MODIFY: Generated by GenerateImageMis
  • GImageStatistics
    Generalized version of ImageStatistics. Type checking is performed at runtime instead of at compile
  • HistogramStatistics
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