hydradarpa / kalman-hydra

Python and C++ code for Hydra optical flow, behavior analysis with extended Kalman filter tracker
2 stars 0 forks source link

Add optic flow emissions to model/estimation #1

Closed benlansdell closed 8 years ago

benlansdell commented 8 years ago

Need to check if the flowx and flowy fragment shaders output floating point, or if they get converted to [0,1] floats, or unsigned ints, or other

benlansdell commented 8 years ago

Can set flowx and flowy to store floating points as follows:

self._rendertex2 = gloo.Texture2D((self.shape + (1,)), format="luminance", internalformat="r32f")

Can retrieve with:

flowx = gloo.read_pixels(out_type = np.float32)

benlansdell commented 8 years ago

Need to upload precomputed optic flow to GPU.

benlansdell commented 8 years ago

Bug... seems to crash, sometimes returning

Program has unset variables: set([u'a_velocity'])

even if only the predict step is used. Must be to do with organization of frame buffers?

benlansdell commented 8 years ago

Oh, I see, this won't be closed until I merge it with the main branch...

abuchin commented 8 years ago

Hi Ben,

I got a little confused, what are you trying to link on Github?

On 18 April 2016 at 15:05, Ben Lansdell notifications@github.com wrote:

Closed #1 https://github.com/benlansdell/hydra/issues/1 via a5b1768 https://github.com/benlansdell/hydra/commit/a5b176826ba1fd9b4049c9fa437653d6e41374db .

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/benlansdell/hydra/issues/1#event-632037667

Best wishes

Anatoly Buchin http://www.buchin.info, PhD

Fairhall laboratory http://fairhalllab.com/ University of Washington Department of Physiology and Biophysics

United States, Seattle +1 206 488 2343 France, Paris +33 6 40 88 07 45 Russia, St Petersburg +7 911 287 10 95

benlansdell commented 8 years ago

Hi Anatoly,

sorry, this is mostly issue tracking for my own benefit. Not trying to upload or link anything. I wasn't aware you'd get these messages if you're 'watching' the repository. I'm sure there's a way to turn them off soomewhere...