C# Класс Detector.Helper.ImageHelpers

Показать файл Открыть проект

Открытые методы

Метод Описание
DrawBox ( ObjectTracked obj, Bitmap &bmp, Color col ) : void

Draw a box around an object

DrawBox ( Target t, Bitmap &bmp, Color col ) : void

Draw a box around a target

DrawBox ( int X, int Y, int width, int height, Bitmap &bmp, Color col, bool fill ) : void

Draw a box around the co-ords with a color

ImageHelpers ( ) : System

Provides some nice functions that can save you a lot of time

MotionBlur ( Bitmap &imagetoblur, Bitmap &current, int ammount ) : void

Blurs an image with another image with a multiplier

SetPixel ( BitmapData &bmp, int x, int y, Color col ) : void

Sets the pixel to a cetain color (Aplha works)

Описание методов

DrawBox() публичный Метод

Draw a box around an object
public DrawBox ( ObjectTracked obj, Bitmap &bmp, Color col ) : void
obj Detector.Tracking.ObjectTracked Object to draw around
bmp System.Drawing.Bitmap The bitmap to draw to
col Color Color
Результат void

DrawBox() публичный Метод

Draw a box around a target
public DrawBox ( Target t, Bitmap &bmp, Color col ) : void
t Detector.Motion.Target The target to draw a box around
bmp System.Drawing.Bitmap The bitmap to draw to
col Color Color
Результат void

DrawBox() публичный Метод

Draw a box around the co-ords with a color
public DrawBox ( int X, int Y, int width, int height, Bitmap &bmp, Color col, bool fill ) : void
X int X
Y int Y
width int Width of the box
height int Height of the box
bmp System.Drawing.Bitmap The bitmap to draw to
col Color Color to draw with
fill bool
Результат void

ImageHelpers() публичный Метод

Provides some nice functions that can save you a lot of time
public ImageHelpers ( ) : System
Результат System

MotionBlur() публичный Метод

Blurs an image with another image with a multiplier
public MotionBlur ( Bitmap &imagetoblur, Bitmap &current, int ammount ) : void
imagetoblur System.Drawing.Bitmap The image that will be modified
current System.Drawing.Bitmap The current image to blur with
ammount int Blur over how many frames
Результат void

SetPixel() публичный Метод

Sets the pixel to a cetain color (Aplha works)
public SetPixel ( BitmapData &bmp, int x, int y, Color col ) : void
bmp System.Drawing.Imaging.BitmapData The bitmap data
x int X
y int Y
col Color Color to draw with
Результат void