About
  1. | API Documentation
  2. | Common
  3. | image
  4. | SmtImage

SmtImage

Defined in <image/SmtImage.h>

This class is the base image object used in the library. It holds data pertaining to the capture of the image as well as functions for easier use.

class SmtImage;

Member Fields

Field Type Notes

Member Functions

(constructor)
BackgroundSubtraction

Do a simple background subtraction of the current image by using iBackImage as the background.

BlobDetection

Detect groups of pixels that are in similar locations to one another.

Cam

Get the camera index number of the camera that took this image.

CompareContourAreas

Compare the sizes of two contour areas to determine which one is bigger. This is used for ordering lists contour areas.

CopyAttributes

This method copies the attributes from iImage and saves them in the current object. Useful for initializing images.

FileSuffix

Returns the suffix of the image when it has been loaded from a file. Otherwise it will be an empty string.

GammaCorrection

No details given

GetInterestingPixels

No details given

GetPixelClusters

Get a list of the iMaxNumClusters largest clusters in this image. This really only makes sense when the image is a binary image. Garbage in, garbage out.

Height

No details given

IsBinary

Is this image a binary image. Useful check before calling functions like GetPixelClusters, that depend on the image being binary.

IsEmpty

If the object doesn’t have any pixel data, then it will return true. Otherwise, false.

Load

No details given

Location

If the image was loaded from a file. This is the path to that file. Otherwise, it is an empty string.

RGB

If the image is in RGB format this returns true, otherwise false. It can be false as sometimes it is in BGR format.

Rotate

No details given

Save

No details given

Threshold

Threshold the colors in an image based on the passed in boundary conditions. The values for the lower bound (iLowerb) and the upper bound (iUpperb) are based on HSV. iFilterSize, iNumIterations, and iLowerNoiseThreshold are used for smoothing the thresholded image to try to decrease the effect that noise can have on creating clusters of pixels.

Timestep

Get the timestep of of the image sequence that this image came from.

Undistort

Use the instrinsic matrix of the camera to undistort this image.

Width

No details given

WriteToPipe

Writes image to an previously opened pipe so that the images can be further processed.

SnakeStrike — An program for high-speed multi-camera data collection and triangulation.

Page owner(s): gwjensen  Last updated: 2020-09-28 07:40:17 +0000