Jason Rodriguez
Posts: 2 |
Hi,
Can you get access to per-pixel RGB values as a triplet array (so basically some sort of per-pixel seperated component output like pixelValue[x][y] would return a pixelColorValue[r][g][b])? |
|||||||
Posted: July 19, 2006 2:21 am | ||||||||
Vladimir Golovin
Administrator |
Jason, there is an ExtractRGB component in channels, but it is not per-pixel -- internally, Filter Forge doesn't operate on pixels.
Could you please describe what you're trying to do? I had an idea about a Color Picker component that would allow extraction of color from a point at specific coordinates, but the idea wasn't finalized enough to be included into the beta. |
|||||||
Posted: July 19, 2006 5:46 am | ||||||||
Mike Blackney
![]() |
Vladimir wrote:
I had an idea about a Color Picker component that would allow extraction of color from a point at specific coordinates, but the idea wasn't finalized enough to be included into the beta. It's not too hard to do ourselves anyway. The attached filter is one example ![]() Pixel Color.ffxml |
|||||||
Posted: July 19, 2006 6:20 am | ||||||||
byRo
![]() |
Drats, must get up earlier - Mike beat me to it!
Rô RGB Picker.ffxml _________________________________
My favourite question is "Why?". My second favourite is "Why not?" |
|||||||
Posted: July 19, 2006 6:59 am | ||||||||
Mike Blackney
![]() |
Haha how funny that we both did pretty much the same thing
![]() Yours is more useful, though - it actually lets you get the RGB like the OP asked for. |
|||||||
Posted: July 19, 2006 8:49 am | ||||||||
byRo
![]() |
Which makes it instructive to examine the differences. ![]() - Moving the sample to centre, as you did, is a neater solution than moving the sampling point around. - "Blending" using Profile Gradients is a neat trick that I'll have to remember. - Didn't understand the width 1 impulse minus the width 0.5 impulse, though. Rô _________________________________
My favourite question is "Why?". My second favourite is "Why not?" |
|||||||
Posted: July 19, 2006 10:27 am | ||||||||
byRo
![]() |
||||||||
Posted: July 19, 2006 10:41 am | ||||||||
Mike Blackney
![]() |
I only just worked that one out myself ![]()
Ahhh, change the position of the 0.5 impulse to -49.5 and the width of the 1 impulse to 2. That'll look more like what I wanted to get ![]()
Much nicer! |
|||||||
Posted: July 19, 2006 5:11 pm | ||||||||
Jason Rodriguez
Posts: 2 |
I was wanting to get pixel values since this program looked like a great/easy way to test out different debayer algorithms (a Bayer CFA is the color grid that is on single-chip cameras).
Thanks for all the feedback. I'm assuming I can take the color picker values from your graphs and then plug that as the values I would need to calculate the values for the demosaic algorithm . . . of course I would also need a FOR loop or something of that nature to get the picker to keep shifting down the image-not so sure that's possible . . . I haven't looked at the documentation yet, sorry if these are silly questions. |
|||||||
Posted: July 20, 2006 11:27 am |
Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!
33,711 Registered Users
+18 new in 30 days!
153,533 Posts
+38 new in 30 days!
15,348 Topics
+73 new in year!
13 unregistered users.