img_base.h File Reference
#include "image.h"
Go to the source code of this file.
|
Typedefs |
typedef enum FvsLogical_t | FvsLogical_t |
Enumerations |
enum | FvsLogical_t {
FvsLogicalOr = 1,
FvsLogicalAnd = 2,
FvsLogicalXor = 3,
FvsLogicalNAnd = 4,
FvsLogicalNOr = 5,
FvsLogicalNXor = 6
} |
Functions |
FvsError_t | ImageBinarize (FvsImage_t image, const FvsByte_t limit) |
FvsError_t | ImageInvert (FvsImage_t image) |
FvsError_t | ImageAverage (FvsImage_t image1, const FvsImage_t image2) |
FvsError_t | ImageAverageModulo (FvsImage_t image1, const FvsImage_t image2) |
FvsError_t | ImageLogical (FvsImage_t image1, const FvsImage_t image2, const FvsLogical_t operation) |
FvsError_t | ImageTranslate (FvsImage_t image, const FvsInt_t vx, const FvsInt_t vy) |
FvsError_t | ImageStripes (FvsImage_t image, const FvsBool_t horizontal) |
FvsError_t | ImageNormalize (FvsImage_t image, const FvsByte_t mean, const FvsUint_t variance) |
FvsError_t | ImageLuminosity (FvsImage_t image, const FvsInt_t luminosity) |
FvsError_t | ImageContrast (FvsImage_t image, const FvsInt_t contrast) |
Typedef Documentation
typedef enum FvsLogical_t FvsLogical_t
|
|
Enumeration Type Documentation
|
- Enumeration values:
-
FvsLogicalOr |
|
FvsLogicalAnd |
|
FvsLogicalXor |
|
FvsLogicalNAnd |
|
FvsLogicalNOr |
|
FvsLogicalNXor |
|
|
Function Documentation
|
Transform a gray image into a binary image with either the value 0 or 255 as pixel color. - Parameters:
-
image | Image to binarize |
limit | Threshold value |
- Returns:
- An error code
|
|
Inverts the pixel colors of an image. - Parameters:
-
- Returns:
- An error code
|
|
Compute the average of 2 images overwrites the result in the first image. - Parameters:
-
image1 | Image that will contain the result |
image2 | Image to combine image1 with |
- Returns:
- An error code
|
|
Compute the average of 2 images overwrites the result in the first image. This function makes a circular average computation. 0 and 255 will result in 0 as an average instead of 127 as with the precedent function. - Parameters:
-
image1 | Image that will contain the result |
image2 | Image to combine image1 with |
- Returns:
- An error code
|
|
Compute a logical combination of two images. - Parameters:
-
image1 | Image that will contain the result |
image2 | Image to combine image1 with |
- Returns:
- An error code
|
|
Translate an image given a vector.
- Todo:
- Implement the function
- Parameters:
-
image | Image to translate |
vx | x vector |
vy | y vector |
- Returns:
- An error code
|
|
Create a test image composed of stripes. - Parameters:
-
image | Image to modify |
horizontal | horizontal or vertical stripes |
- Returns:
- An error code
|
|
Normalize an image so that it gets specified mean and variance - Parameters:
-
image | Image to modify |
mean | Mean value the resulting image must have |
variance | Standard deviation the resulting image must have |
- Returns:
- An error code
|
|
Change the luminosity of an image argument ranging [-255..255] - Parameters:
-
image | Image to modify |
luminosity | Relative luminosity factor |
- Returns:
- An error code
|
|
Change the contrast of an image argument ranging [-127..127] - Parameters:
-
image | Image to modify |
contrast | Relative contrast factor |
- Returns:
- An error code
|