Class VLColorTwist.TVLColorTwist

From Mitov Wiki Doc
Revision as of 00:30, 26 June 2013 by David Alm (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.

BIGVLColorTwist.gif VLColorTwist.gif NETVLColorTwist.gif

Package: VideoLabPkg

Unit: VLColorTwist

Inherits: TVLCommonFilter

Contents

Syntax

Delphi:

type TVLColorTwist = class( TVLCommonFilter )

C++ Builder:

class TVLColorTwist : public TVLCommonFilter

Visual C++ (MFC):

class CTVLColorTwist : public CTVLCommonFilter

C# (.NET):

public ref class ColorTwist : Mitov.VideoLab.CommonFilter

Summary

Twists the colors of the image.

Description

Color twist conversion component uses values of all color channels of a source pixel to compute the resultant destination channel value. The destination channel value is obtained as the result of multiplying the corresponding row of the color-twist matrix by the vector of source pixel channel values.

For example,if (r,g,b) is a source pixel, then the destination pixel values (R,G,B)are computed as follows:

R := RedTwist.Red   * r + RedTwist.Green   * g + RedTwist.Blue   * b + RedTwist.Offset;
G := GreenTwist.Red * r + GreenTwist.Green * g + GreenTwist.Blue * b + GreenTwist.Offset;
B := BlueTwist.Red  * r + BlueTwist.Green  * g + BlueTwist.Blue  * b + BlueTwist.Offset;

Diagram:

VLColorTwist Preview.png


Example:

Original Image: Sample Color Twist:
SampleVideo.png SampleColorTwist.png

Properties

Published

From TVLCommonFilter

Properties

Public

Methods

Public

Pins

From TSLBasicThreadedEnableFilter

Properties

Published

From TSLBasicThreadedFilter

Properties

Published

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox