Class VLColorTwist.TVLColorTwist
(Automated Syncronization with Documentation) |
(Automated Syncronization with Documentation) |
||
Line 28: | Line 28: | ||
=== C# (.NET): === | === C# (.NET): === | ||
<code> | <code> | ||
− | '''public ref class''' | + | '''public ref class''' ColorTwist : [[Class VLCommonFilter.TVLCommonFilter|Mitov.VideoLab.CommonFilter]] |
</code> | </code> | ||
== Summary == | == Summary == |
Latest revision as of 00:30, 26 June 2013
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.
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:
Example:
Original Image: | Sample Color Twist: |
Properties
Published
- ColorTwists - Parameters of the color twist operation.
From TVLCommonFilter
Properties
Public
Methods
Public
- procedure ProcessFrame(Image : IVLImageBuffer)
- procedure ProcessFrame(InImage : IVLImageBuffer; var OutImage : IVLImageBuffer)
- procedure ProcessBitmap(InBitmap : TBitmap; OutBitmap : TBitmap)