public class LocalBufferedHistogram extends Object
Local histogram in a linear neighborhood of a pixel. Works only for Grayscale images coded between 0 and 255.
Replaced by LocalExtremumBufferGray8
| Constructor and Description | 
|---|
LocalBufferedHistogram(int n)
Main constructor. 
 | 
LocalBufferedHistogram(int n,
                      int value)
Initializes an histogram filled with the given value. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
add(int value)
Adds a value to the local histogram, and update bounds if needed. 
 | 
void | 
clear()
Reset inner counts with zero values, and min and max values. 
 | 
void | 
fill(int value)
Resets histogram by considering it is filled with the given value. 
 | 
int | 
getMax()
Returns the maximum value stored in this local histogram 
 | 
int | 
getMin()
Returns the minimum value stored in this local histogram 
 | 
public LocalBufferedHistogram(int n)
n - the size of the bufferpublic LocalBufferedHistogram(int n,
                              int value)
n - the size of the buffervalue - the initial value of all elements in bufferpublic void add(int value)
value - the value to addpublic void clear()
public void fill(int value)
value - the new value of all elements in the histogrampublic int getMin()
public int getMax()
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.