v002 OpticalFlow

Home Forums v002 v002 QC Plugins Support v002 OpticalFlow

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #4163
    franz
    Participant

    Hi,
    I’m trying to connect your OpticalFlow plugin with my own Particle stuff.
    So far I understood that R and G code movement on the X axis ( R is X positive, G is X negative).
    How about the Y axis ?
    thanks.
    Great plug. by the way, good performance !

    #4164
    vade
    Keymaster

    B and A 🙂

    #4165
    franz
    Participant

    then something must be wrong in my plugin, as i can’t get B working (while A produces expected result)

    #4166
    vade
    Keymaster

    What machine are you on? I did notice a bug on my i7 MBP (NV 330m) where it was not outputting as expected. I need to see whats up 🙁

    #4167
    franz
    Participant

    I’m on a MBP core2 + 9600.

    I’m using a bufferRep to grab your OFlow image, QCPlugInPixelFormatRGBAf , kCGColorSpaceGenericRGBLinear.

    I grab pixels that way:

    R = baseAddress[4*x+y*floatsPerRow];
    G = baseAddress[4*x+1+y*floatsPerRow];
    B = baseAddress[4*x+2+y*floatsPerRow];
    A = baseAddress[4*x+3+y*floatsPerRow];

    R,G and A works, but not B ….

    EDIT:
    i’ve logged the values, and B is always negative… (?)
    R and G can range beyond 1 , but A always tops at 1.

    #4168
    franz
    Participant

    i just released the plugin I’m talking about, so you can see by yourself…
    I’ll double check however, to see if it doesn’t come from my side.
    (but I’ve no clue where i could have been wrong)

    #4169
    vade
    Keymaster

    I dont doubt you. It may be a bug. I have not had a chance to look at it yet, to be honest.

    #4170
    bangnoise
    Keymaster

    seriously nice particles Franz. One or the other of us will get to it when we can – or the source is included with the plugin if you want to take a look yourself.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.