Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-10-13 | compat/macros: fix "restrict" name clash | Stanislaw Halik | |
2017-10-10 | tracker/pt: comment typo | Stanislaw Halik | |
2017-10-08 | tracker/pt: grayscale methods work | Stanislaw Halik | |
- fix a braino (don't divide by two) - default to exact averaging, not perceptual weighted - use more specific cv::addWeighted | |||
2017-09-23 | tracker/pt: fix braino | Stanislaw Halik | |
Don't multiply red channel by 3 in 0->1 range. | |||
2017-09-22 | tracker/pt: add color extraction modes | Stanislaw Halik | |
2017-07-29 | tracker/pt: revert most 2.3.8 changes | Stanislaw Halik | |
Remove contour usage. They're less precise than flood fill. Keep sensible changes. | |||
2017-07-26 | tracker/pt: scale min/max radius with resolution | Stanislaw Halik | |
For 320x240 frames auto threshold min value of 2.5 was too big. Scale it linearly with frame size. | |||
2017-07-25 | tracker/pt: fix overlay | Stanislaw Halik | |
The "fract_bits" constant wasn't used consistently in the 2nd cv::circle invocation. Drop the invocation. | |||
2017-07-25 | tracker/pt: fix weight formula | Stanislaw Halik | |
2017-07-25 | tracker/pt: compute blob weight | Stanislaw Halik | |
The formula is total brightness over sqrt(radius). | |||
2017-07-20 | tracker/pt: fix build on Linux | Stanislaw Halik | |
GNU expects ODR for `int' constexpr members. | |||
2017-07-16 | compat/math-imports: use it | Stanislaw Halik | |
2017-07-07 | Unsigned cast reformat | attila-csipa | |
2017-06-30 | tracker/pt: reformat lightly | Stanislaw Halik | |
2017-06-22 | tracker/pt: replace point extraction algorithm | Stanislaw Halik | |
Profiling over a longer time period showed a bottleneck while iterating pixels with `cv::floodFill()'. Contours are actually faster, and we have MeanShift to establish the proper center basing on pixel intensities. | |||
2017-06-19 | tracker/{aruco,pt}: convert camera image with BGR weights | Stanislaw Halik | |
We were using the wrong weights for all the years. Fuck me. | |||
2017-06-18 | tracker/pt: tweak meanshift cpu usage | Stanislaw Halik | |
2017-06-12 | tracker/pt: cleanup | Stanislaw Halik | |
Also, changing "f" typedef to "float" won't break the build anymore. | |||
2017-06-12 | tracker/pt: fix LED radius offset | Stanislaw Halik | |
2017-06-11 | tracker/pt: show detected blobs as circles | Stanislaw Halik | |
2017-04-18 | many: use std::f{max,min} for floating-point values | Stanislaw Halik | |
2017-04-18 | tracker/pt: revert extractor change | Stanislaw Halik | |
2017-04-18 | tracker/pt: replace original blob center search with meanshift | Stanislaw Halik | |
The functions are almost identical so why not. I removed several bits: - weighting by squared pixel value is bad. weight by pixel value instead. - making the ROI twice as big doesn't make sense and makes for misdetected blobs. remove it. - switch radius coefficient to something doing less iterations. - sprinkle some __restrict pointer qualifier. - cv::floodfill invocation had some hardcoded flag value. - point radius circle and the bullseye line length weren't adjusted by scaling ratio. while the circle fitted the radius tightly, it was now clutter, so I removed it, leaving only the properly-scaled bullseye. - brightness had to go sadly since it's not accumulated anymore. | |||
2017-03-03 | tracker/pt: show average point radius on the displayopentrack-2.3.1_fix3 | Stanislaw Halik | |
Helps with choosing automatic threshold slider position. | |||
2017-02-21 | tracker/pt: change meanshift kernel size coefficient | Stanislaw Halik | |
From my usage the value of 1.5 is excessively conservative. | |||
2017-02-21 | tracker/pt: resize the camera feed, not the preview | Stanislaw Halik | |
This makes the point size text and point crosses not alias due to the resize. Due to nice pixel coordinate system, the cross-drawing lambda only needs minimal changes. | |||
2016-12-16 | tracker/pt: refactor camera info handling | Stanislaw Halik | |
- Pass `struct CamInfo' rather than several elements separately - Reformat - Return `struct CamInfo' together with the frame since then it's always valid - Move the focal length formula into `struct CamInfo' - Remove incorrect focal length formula rather than #if 0 - Pass some stuff by reference and not by pointer | |||
2016-12-10 | tracker/pt: make overlay look more of the same on 320x240 as 640x480 | Stanislaw Halik | |
2016-12-09 | tracker/pt: show right overlay wrt frame size | Stanislaw Halik | |
2016-12-09 | tracker/pt: use the right delta for iteration stop | Stanislaw Halik | |
2016-12-09 | tracker/pt: inline meanshift eval fun | Stanislaw Halik | |
2016-12-09 | tracker/pt: improved precision and noise rejection by mean shift filtering | DaMichel | |
2016-11-12 | tracker/pt: refactor | Stanislaw Halik | |
- separate .{cpp,hpp} for few classes - don't include namespaces globally; harmless but looks bad anyway - class with all public members to struct | |||
2016-10-11 | tracker/pt: fix brain fart in extractor | Stanislaw Halik | |
It's multiplied by 3 just a few lines below. So ~2 is actually a good lower bound. | |||
2016-10-11 | tracker/pt: increase min point radius to sensible value | Stanislaw Halik | |
We can't possibly have LEDs smaller than (6/3=2) each. Especially not (2.5/6). | |||
2016-10-10 | tracker/pt: get rid of heap allocation | Stanislaw Halik | |
Use stack arrays rather than vectors. std::array may be a better choice though. | |||
2016-09-28 | tracker/pt: don't check for blob limit pointlessly | Stanislaw Halik | |
It's branch predicted anyway, but for clarity. | |||
2016-09-25 | tracker/pt: square the center weight | Stanislaw Halik | |
Follow original implementation. | |||
2016-09-21 | tracker/pt: fix area/radius confusion in extractor | Stanislaw Halik | |
2016-09-21 | tracker/pt: fix harmless fencepost error | Stanislaw Halik | |
2016-09-21 | many: remove compat/pi-constant.hpp | Stanislaw Halik | |
With -D_USE_MATH_DEFINES MSVC defines the standard M_PI and friends. Since this preprocessor definition is now always passed as part of the build system for MSVC. We can use M_PI as if on a mission. | |||
2016-09-16 | tracker/pt: get rid of pt_types class | Stanislaw Halik | |
2016-08-28 | tracker/pt: merge 2 variables used exactly the same way | Stanislaw Halik | |
2016-08-12 | all: rename modules s#^opentrack-##. and opentrack -> api | Stanislaw Halik | |
Adjust usages. | |||
2016-07-31 | tracker/{pt,aruco}: don't include opencv highgui, videoio is enough | Stanislaw Halik | |
2016-07-25 | tracker/pt: drop signed/unsigned warning | Stanislaw Halik | |
2016-07-20 | tracker/pt: change brightness formula | Stanislaw Halik | |
Use square root of area. Otherwise very small bright points are unfairly used. | |||
2016-07-20 | tracker/pt: adjust min/max radius for auto threshold | Stanislaw Halik | |
2016-07-20 | tracker/pt: fix wrong input to flood fill | Stanislaw Halik | |
The binary frame needs to be used, not grayscale. v2: Use brightness for sorting points. | |||
2016-07-19 | tracker/pt: reduce locking | Stanislaw Halik | |