14 #define DEFAULT_BORDER_SIZE 3 // VisionAPI.frcCreateImage
15 #define DEFAULT_SATURATION_THRESHOLD 40 // TrackAPI.FindColor
18 typedef struct FindEdgeOptions_struct FindEdgeOptions;
19 typedef struct CircularEdgeReport_struct CircularEdgeReport;
27 double imageTimestamp;
37 double center_mass_x_normalized;
39 double center_mass_y_normalized;
46 double particleToImagePercent;
49 double particleQuality;
55 int numberParticlesFound;
56 int largestParticleNumber;
60 float particleHueMean;
63 float particleSatMean;
66 float particleLumMean;
82 int frcCrop(Image* dest,
const Image* source, Rect rect);
85 int frcScale(Image* dest,
const Image* source,
int xScale,
int yScale,
86 ScalingMode scaleMode);
96 HistogramReport*
frcHistogram(
const Image* image,
int numClasses,
float min,
97 float max, Rect rect);
100 ColorMode mode, Image* mask);
109 const ParticleFilterCriteria2* criteria,
110 int criteriaCount,
const ParticleFilterOptions* options,
111 Rect rect,
int* numParticles);
113 const ParticleFilterCriteria2* criteria,
114 int criteriaCount,
const ParticleFilterOptions* options,
117 int frcMorphology(Image* dest, Image* source, MorphologyMethod method);
118 int frcMorphology(Image* dest, Image* source, MorphologyMethod method,
119 const StructuringElement* structuringElement);
132 int frcEqualize(Image* dest,
const Image* source,
float min,
float max);
133 int frcEqualize(Image* dest,
const Image* source,
float min,
float max,
138 int frcColorEqualize(Image* dest,
const Image* source,
int colorEqualization);
144 unsigned int windowWidth,
unsigned int windowHeight,
145 LocalThresholdMethod method,
double deviationWeight,
148 unsigned int windowWidth,
unsigned int windowHeight,
149 LocalThresholdMethod method,
double deviationWeight,
150 ObjectType type,
float replaceValue);
154 float rangeMax,
float newValue);
160 const Range* plane1Range,
const Range* plane2Range,
161 const Range* plane3Range);
163 ColorMode mode,
const Range* plane1Range,
164 const Range* plane2Range,
const Range* plane3Range);
165 int frcHueThreshold(Image* dest,
const Image* source,
const Range* hueRange);
166 int frcHueThreshold(Image* dest,
const Image* source,
const Range* hueRange,
171 Image* plane2, Image* plane3);
int frcRejectBorder(Image *dest, Image *source)
Eliminates particles that touch the border of the image.
Definition: VisionAPI.cpp:403
int frcHueThreshold(Image *dest, const Image *source, const Range *hueRange)
A simpler version of ColorThreshold that thresholds hue range in the HSL mode.
Definition: VisionAPI.cpp:759
int frcReadImage(Image *image, const char *fileName)
Creates image object from the information in a file.
Definition: VisionAPI.cpp:145
int frcParticleAnalysis(Image *image, int particleNumber, ParticleAnalysisReport *par)
Conduct measurements for a single particle in an images.
Definition: VisionAPI.cpp:437
HistogramReport * frcHistogram(const Image *image, int numClasses, float min, float max)
Measures the pixel intensities in a rectangle of an image.
Definition: VisionAPI.cpp:223
int frcParticleFilter(Image *dest, Image *source, const ParticleFilterCriteria2 *criteria, int criteriaCount, const ParticleFilterOptions *options, int *numParticles)
Filters particles out of an image based on their measurements.
Definition: VisionAPI.cpp:334
int frcExtractColorPlanes(const Image *image, ColorMode mode, Image *plane1, Image *plane2, Image *plane3)
Extracts the Red, Green, Blue, or Hue, Saturation or Luminance information from a color image...
Definition: VisionAPI.cpp:800
int frcColorThreshold(Image *dest, const Image *source, ColorMode mode, const Range *plane1Range, const Range *plane2Range, const Range *plane3Range)
Applies a threshold to the Red, Green, and Blue values of a RGB image or the Hue, Saturation...
Definition: VisionAPI.cpp:709
int frcSimpleThreshold(Image *dest, const Image *source, float rangeMin, float rangeMax)
Converts a grayscale image to a binary image for Particle Analysis based on a fixed threshold...
Definition: VisionAPI.cpp:658
Image * frcCreateImage(ImageType type)
Create an image object Supports IMAQ_IMAGE_U8, IMAQ_IMAGE_I16, IMAQ_IMAGE_SGL, IMAQ_IMAGE_COMPLEX, IMAQ_IMAGE_RGB, IMAQ_IMAGE_HSL, IMAQ_IMAGE_RGB_U64 The border size is defaulted to 3 so that convolutional algorithms work at the edges.
Definition: VisionAPI.cpp:37
ColorHistogramReport * frcColorHistogram(const Image *image, int numClasses, ColorMode mode)
Calculates the histogram, or pixel distribution, of a color image.
Definition: VisionAPI.cpp:284
int frcMorphology(Image *dest, Image *source, MorphologyMethod method)
Performs morphological transformations on binary images.
Definition: VisionAPI.cpp:375
int frcGetPixelValue(const Image *image, Point pixel, PixelValue *value)
Measures the pixel intensities in a rectangle of an image.
Definition: VisionAPI.cpp:310
int frcScale(Image *dest, const Image *source, int xScale, int yScale, ScalingMode scaleMode)
Scales the entire image larger or smaller.
Definition: VisionAPI.cpp:126
Tracking functions return this structure.
Definition: VisionAPI.h:54
int frcCountParticles(Image *image, int *numParticles)
Counts the number of particles in a binary image.
Definition: VisionAPI.cpp:419
int frcWriteImage(const Image *image, const char *fileName)
Write image to a file.
Definition: VisionAPI.cpp:179
int frcCopyImage(Image *dest, const Image *source)
Copy an image object.
Definition: VisionAPI.cpp:92
int frcDispose(void *object)
Dispose of one object.
Definition: VisionAPI.cpp:48
int frcColorEqualize(Image *dest, const Image *source)
Improves contrast on a color image.
Definition: VisionAPI.cpp:575
frcParticleAnalysis returns this structure
Definition: VisionAPI.h:24
int frcExtractHuePlane(const Image *image, Image *huePlane)
Extracts the Hue information from a color image.
Definition: VisionAPI.cpp:816
int frcEqualize(Image *dest, const Image *source, float min, float max)
Improves contrast on a grayscale image.
Definition: VisionAPI.cpp:552
int frcSmartThreshold(Image *dest, const Image *source, unsigned int windowWidth, unsigned int windowHeight, LocalThresholdMethod method, double deviationWeight, ObjectType type)
Automatically thresholds a grayscale image into a binary image for Particle Analysis based on a smart...
Definition: VisionAPI.cpp:624
int frcCrop(Image *dest, const Image *source, Rect rect)
Crop image without changing the scale.
Definition: VisionAPI.cpp:108