Code Monkey home page Code Monkey logo

Comments (3)

puzzlepaint avatar puzzlepaint commented on June 30, 2024

I think that there is already a file points.yaml among the state files that contains the optimized (deformed) pattern point positions, and it should be simple to compute the original point positions from the pattern definition YAML file. See FeatureDetectorTaggedPattern::GetCorners() and PatternData::IsValidFeatureCoord() in /applications/camera_calibration/src/camera_calibration/feature_detection/feature_detector_tagged_pattern.cc/h for how to obtain the feature positions as integers (without scaling). So I think that the required information is already present and relatively easy to access.

from camera_calibration.

abrock avatar abrock commented on June 30, 2024

Thank you for the information. I tried to add the functionality I'd like to the SavePointsAndIndexMapping function but FeatureDetectorTaggedPattern::GetCorners is not static and I couldn't figure out where to get an instance from. I ran a debugger with a breakpoint in the contructor of FeatureDetectorTaggedPattern and it didn't trigger.
Could you give me a rough idea where to start adding the functionality?
I'd also like to get 3D feature points for every image used.

from camera_calibration.

puzzlepaint avatar puzzlepaint commented on June 30, 2024

This is where the feature detector is constructed (it is only allocated if needed):

detector.reset(new FeatureDetectorTaggedPattern(pattern_files, refinement_window_half_extent, refinement_type, cuda_feature_detection));

This then builds the map from feature IDs to positions using GetCorners() (if image directories are given):

It should be possible to use this mapping after this has been called. This map is also saved in the dataset files as the "known geometries":

It could be an option to load them from these files and then associate them with the optimized point positions based on the feature ID. This should not require modifying the camera calibration code.

The features for each image are also saved in the dataset files:

from camera_calibration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.