Home Page › forums › fx Art and Technique › the fxcraft › Average RGB in a Frame
- This topic has 13 replies, 6 voices, and was last updated 13 years, 3 months ago by David Stewart.
-
AuthorPosts
-
October 30, 2006 at 7:17 pm #201284spetzParticipant
Hello guys (and girls),
I wanted to know if there is a way to measure the average amount of the RGB in one frame, lets say PAL resolution. Even better will be if one of you actually have a script or a spark that he/she wrote to do so. I am trying to work on a script on Linux, but since I am not familiar with the way to write scripts that will work in the Flame itself, that’s a problem. (oh yeah! did I maintained I am referring to a FFI??? sorry.. 😉 well..I am now 🙂 ).
Thanks, Spetz.
October 30, 2006 at 7:47 pm #214362bnwParticipantYou mean basically the average brightness of the whole frame? Pretty easy, just apply a HUGE blur to it and keep making the blur even HUGER until it’s so big that the entire frame is one colour. That colour is your average.
I’m curious, why on earth do you want to do that? 🙂
October 30, 2006 at 10:12 pm #214366Kemer StevensonParticipantok loops…you got me.. 😳
it is more complicated than that, and I was hoping someone acthually have the script I talked about. what I am trying to figure out is a way to translate this avarage amount of RGB info in to a usuable channel for expresions. lets say for example a batch that will take the values of a specific frame ,(for example 73,19,2 as in R,G,B), and according to it will place it in a specific place on the screen. mmm…I am not making much sense here do i?….mm..I think I am trying myself to figure out what the hecc do I want myself…mm..work in progress, what can I say. thanks anyway 🙂October 31, 2006 at 8:33 pm #214365Kemer StevensonParticipantp.s.
an even simpler way to plot the average RGB is to hold “ctrl” while measuring it in CC. or keep hold the “Alt” while dragging the sampler over the image. again..my problem is to preform it automatically in batch and use the values for other manipulations.
but thanks anyway, s.
November 1, 2006 at 11:56 am #214361bnwParticipantIt can be done, there’s at least three ways: the Sapphire FlickerRemove spark creates a curve of the luminance of its analysis region, you can do something crazy and old school and devious which pull posted in this thread: http://www.fxguide.com/postt2383.html, or you can use a Spark I wrote which is linked from that same thread.
Seriously this has come up like four times now – what the hell are you guys DOING with this? 🙂
November 1, 2006 at 6:44 pm #214358RamazanParticipantmosaic made up of a variety of images??? but i’m not sure average would do the trick…so maybe not!
November 2, 2006 at 8:44 pm #214364Kemer StevensonParticipantyou got it just right man. that’s exactly what I am trying to do. I am exploring various ways of doing it. it seems like I need more than just the RGB average here. but because we are dealing here with a motion picture and not just a still one, the pixels changes with every movements. for that reason I wanted the build this crazy concept kinda script to achieve just that. I am half way through there, but because of deadline issues I will probably do it manually at the end, (like we all find ourselves doing from time to time).
and loops! thanks for the link, I will look in to it. as usual, good to know there are people out there with good will and knowledge to share,.
cheers, Spetz.
November 3, 2006 at 11:50 am #214360bnwParticipantI’ve never done a mosaic but I always thought that pixellating your large image into as many pixels as you have smaller images, then multiplying that by your grid of small images would help a lot in getting the small ones to be the right colour and brightness. Fun stuff, maybe I’ll have a go.
November 13, 2006 at 1:57 am #214369David StewartParticipantPerhaps not overly relevant as you aren’t working with stills, but i used a program named MacOSaiX to create reference frames for the 3d guys for a job recently. Its just a little program tht lets you select the image you want to turn into a mosaic, select your images to insert into tiles and then BAM, mosaic magic!
Another nice little feature is you can ask it to do a google image search for a keyword if you havent got enough frames. We made some highly amusing mosaics using humorous keywords. 😉
Check it out…
January 3, 2007 at 1:31 am #214367Kemer StevensonParticipantI forgot some guys helped here in the process, and it’s been a while since I last told you about this project, but it’s never too late I guess.
Bellow is the link to the commercial which we finally pulled off. I must say the quality of the Quicktime is not really good, so I guess you will have to believe me when I say each “pixel” actually had a video running inside of it 😉
again tnx you all.
http://broadcast.co.il/objDoc.asp?PID=3&OID=5&playOnLoad=true
p.s.
sorry for the Hebrew titles, it’s talking about live video performances in cellular phones… (not that deep I know…)January 3, 2007 at 2:02 am #214368David StewartParticipantNice one man!
How did you end up doing it in the end? Manually?
January 3, 2007 at 1:34 pm #214359bnwParticipantCool. Was the slowing down/freezing for the transitions a deliberate choice or just to make the mosaic easier? I guess it would be pretty hard to do it with moving footage 🙂
January 3, 2007 at 10:32 pm #214363Kemer StevensonParticipantThe way we did it is animating a camera in Action than exporting it to Maya. there we build a script which does the automatic placement of the videos according to their average RGB. it worked good in the large shots but noway in the closeups. so we ended up collecting a huge amount of videos from all kind of live shows and manage to achieve a respectable library of a spectrum of one colored based shots. then we went back to Flame with the renders and using the same camera we manually (yes….) build a huge grid with the matching shots. so it will look cool in the closeups. the camera idea helped allot since we didn’t have to track the render again.in the end adding all the designed look of the black grid, lightning effects, shadows etc.
About the freeze, yes it made it much more easier, but also readable. if the shot would had continue moving, it would be just one big mess, and the zoom in to the certain “pixel” practically impossible.. we had rather have the clean smooth zoom-ins instead of sticking to the original pure moving mosaic idea.
if you are interested in the Maya script I can try getting it published , but I would not count about that.. (if it was all up to me I would have done it already..)
spetz.
August 6, 2007 at 11:27 am #214357AnonymousGuestHi, This post of mine is very beneficial and informative, however there are some specific facts or information that I require. If anyone can help me in this matter then please send me a private message. Best Regards,
Pakistan Property | Wholesale Suppliers
Wholesale Canadian Directory | All UK Wholesalers -
AuthorPosts
- You must be logged in to reply to this topic.
