Skip to content

New One Euro Filter Feature#172

Open
kalwalt wants to merge 13 commits into
devfrom
feature-oef-c++
Open

New One Euro Filter Feature#172
kalwalt wants to merge 13 commits into
devfrom
feature-oef-c++

Conversation

@kalwalt

@kalwalt kalwalt commented May 16, 2022

Copy link
Copy Markdown
Member

I started to add the OEF into the WebARKitLib core. I think that the filtering process should be done inside the worker to improve fps performances.
The C++ code is a single header library, in this way it's not necessary to add to the source and compile into libar.bc.
I'm still testing the code so things could changes frequently. Anyway if you are interested i'm using emsdk 3.1.9.
For anyone interested, you can find the original code at this address: http://www.lifl.fr/~casiez/1euro/OneEuroFilter.cc

@kalwalt

kalwalt commented May 18, 2022

Copy link
Copy Markdown
Member Author

I implemented a new filterMat2 function and testing inside the getNFTmarkerInfo function. When the marker is detected i receive an error that alpha should be in [0.0, 1.0] that sound strange because i have added the arController.setOEF(120, 0.1, 0.1, 10); inside the worker. And after the app crash...

@kalwalt

kalwalt commented May 25, 2022

Copy link
Copy Markdown
Member Author

values passed to the filter function (internally in filterMat2) are not in the range 0.0f - 1.0f that's why the error alpha should be in [0.0, 1.0]. I suppose that arUtilQuatNorm doesn't normalize in the term i aspect, so i need to normalize all the values in the correct range.

@kalwalt

kalwalt commented May 26, 2022

Copy link
Copy Markdown
Member Author

Testing without FILTERING enabled, so trans values passing only to OEF. In the log console pose matrix is a series of NaN values, that confirm values(quaternions and positions) need to be in range 0.0-1.0.

@kalwalt

kalwalt commented Sep 30, 2022

Copy link
Copy Markdown
Member Author

I will try to implement a simpler function with resetted time values in Rangers between 0.0 and 1.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant