Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 21st January 2015, 04:54   #1  |  Link
MrPete
Registered User
 
MrPete's Avatar
 
Join Date: Dec 2014
Location: @2100m in Colorado USA
Posts: 56
Apply two 3x3 matrices to each pixel?

What I want:
For each pixel of each frame
{
// Transform the (R, G, B) values by doing two matrix
// transformatoins:
A = (R * ConstRa) + (G * ConstGa) + (B * ConstBa)
B = (R * ConstRb) + (G * ConstGb) + (B * ConstBb)
C = (R * ConstRc) + (G * ConstGc) + (B * ConstBc)

pxR' = (A * ConstAr) + (B * ConstBr) + (C * ConstCr)
pxG' = (A * ConstAg) + (B * ConstBg) + (C * ConstCg)
pxB' = (A * ConstAb) + (B * ConstBb) + (C * ConstCb)

pxRGB = (pxR', pxG', pxB')
}

I have not found such a plugin/function... seems like it MUST already exist... Any ideas?


PS: Why... for arbitrary colorspace conversion using known (rgb)->xyz, xyz -> (r'g'b') matrices

In my case, I've captured video on my wive's Nikon DSLR in Adobe RGB, and want to convert back to normal sRGB...

Thanks!
Pete
MrPete is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 15:46.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.