Class VLColorTwist.TVLColorTwist
(Automated Syncronization with Documentation) |
(Automated Syncronization with Documentation) |
||
Line 52: | Line 52: | ||
</code> | </code> | ||
− | Example: | + | <b>Diagram:</b> |
+ | |||
+ | [[Image:VLColorTwist_Preview.png]] | ||
+ | |||
+ | |||
+ | |||
+ | <b>Example:</b> | ||
{| border="1" cellspacing="0" cellpadding="5" | {| border="1" cellspacing="0" cellpadding="5" | ||
|- | |- | ||
Line 92: | Line 98: | ||
=== Published === | === Published === | ||
*[[Property SLCommonFilter.TSLBasicThreadedEnableFilter.Enabled|Enabled]] | *[[Property SLCommonFilter.TSLBasicThreadedEnableFilter.Enabled|Enabled]] | ||
− | |||
− | |||
− | |||
== From [[Class SLCommonFilter.TSLBasicThreadedFilter|TSLBasicThreadedFilter]] == | == From [[Class SLCommonFilter.TSLBasicThreadedFilter|TSLBasicThreadedFilter]] == |
Revision as of 20:29, 10 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 TVLColorTwist : 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)