Classes | |
struct | PixelSum |
A struct for computing the sum of pixels in an image. More... | |
Functions | |
template<typename T> CImg< T > | peak_filter (int width, int sign=1) |
Create a rectangular zero-sum peak filter. | |
template<typename T> void | zero_negatives (CImg< T > &img) |
Set all negative values of the image to zero. | |
template<typename T> void | weight_gaussian (CImg< T > &img, float xc, float yc, float x_sigma2, float y_sigma2) |
Weigh an image with a centered gaussian. | |
template<typename T> CImg< T > | hough (const CImg< T > &src, float theta1, float theta2, int num_thetas, int max_rho) |
Compute the Hough transform. | |
template<typename T> void | median_peak_remove (CImg< T > &img, int x0, int win, T value=0) |
Remove a peak from a one-dimensional image. | |
template<typename T> int | find_max1 (const CImg< T > &img, int x1=0, int x2=-1) |
Find a maximum from a one-dimensional image. | |
template<typename T> int | find_max_x (const CImg< T > &img, int y, int x1=0, int x2=-1) |
Find maximum along a row of a two-dimensional image. | |
template<typename T> T & | paste_image (const T &src, T &tgt, int x0, int y0) |
Paste an image to another image. | |
template<typename T> CImg< T > | sum_y (const CImg< T > &img) |
Compute the sum of each column of the image. | |
template<typename T> CImg< T > & | set_range1 (CImg< T > &img, int x1=0, int x2=img.width-1, T value=0) |
Set range of values in an one-dimensional image. | |
template<typename T> CImg< T > | max_x (const CImg< T > &img, int x1=0, int x2=img.width-1) |
Compute the maximum of each row. | |
template<typename T> T | median (CImg< T > &img, int x1, int x2) |
Median of the values in a one-dimensional row image. | |
template<typename T> T | line_sum (CImg< T > &img, const geom::Line &line) |
Compute the sum of the pixels along a line. |
|
Find a maximum from a one-dimensional image.
|
|
Find maximum along a row of a two-dimensional image.
|
|
Compute the Hough transform.
Each point in the resulting image correspond to a straight line in the original image. The x-axis represents the angle (theta) of the normal of the line, and the y-axis represents the distance (rho) between the line and the center of the image. The width of the result will be
|
|
Compute the sum of the pixels along a line.
|
|
Compute the maximum of each row.
|
|
Median of the values in a one-dimensional row image.
|
|
Remove a peak from a one-dimensional image.
|
|
Paste an image to another image.
|
|
Create a rectangular zero-sum peak filter.
The filter is first filled with the value of
|
|
Set range of values in an one-dimensional image.
|
|
Compute the sum of each column of the image.
|
|
Weigh an image with a centered gaussian.
|
|
Set all negative values of the image to zero.
|