Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make undistort algorithm configurable #3

Merged
merged 3 commits into from
Jan 30, 2025
Merged

Conversation

seixasxbr
Copy link

@seixasxbr seixasxbr commented Jan 27, 2025

Depends on:

What is this PR for

make the interpolation method used to undistort the image configurable

review hint

The first commit is just indentation

Checklist

  • Assign yourself in the PR

@seixasxbr seixasxbr self-assigned this Jan 27, 2025
tasks/Preprocess.cpp Outdated Show resolved Hide resolved
camera_base.orogen Outdated Show resolved Hide resolved
tasks/Preprocess.hpp Outdated Show resolved Hide resolved
tasks/Preprocess.cpp Outdated Show resolved Hide resolved
tasks/Preprocess.hpp Outdated Show resolved Hide resolved
@seixasxbr seixasxbr requested a review from chhtz January 28, 2025 13:43
@seixasxbr seixasxbr changed the title Undistort param feat: make undistort algorithm configurable Jan 28, 2025
@chhtz
Copy link

chhtz commented Jan 28, 2025

Should this PR actually go to the main repository (once the related PR is merged)?

Comment on lines +211 to +212
property("undistort_algorithm","/frame_helper/UndistortAlgorithm",:UNDISTORT_LINEAR).
doc "interpolation algorithm which is used to undistort the frame before it is written to the output port. "
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strictly speaking the interpolation isn't the undirstor algorithm, it is a piece of it

Suggested change
property("undistort_algorithm","/frame_helper/UndistortAlgorithm",:UNDISTORT_LINEAR).
doc "interpolation algorithm which is used to undistort the frame before it is written to the output port. "
property("undistort_interpolation","/frame_helper/UndistortAlgorithm",:UNDISTORT_LINEAR).
doc "interpolation used by the undistort algorithm "

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right ... but then undistort_algorithm is what it's called in the frame helper implementation ... Is this worth having to change all of it ? Not sure personally.

Comment on lines +211 to +212
property("undistort_algorithm","/frame_helper/UndistortAlgorithm",:UNDISTORT_LINEAR).
doc "interpolation algorithm which is used to undistort the frame before it is written to the output port. "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right ... but then undistort_algorithm is what it's called in the frame helper implementation ... Is this worth having to change all of it ? Not sure personally.

@doudou
Copy link
Member

doudou commented Jan 30, 2025

Should this PR actually go to the main repository (once the related PR is merged)?

It should have been pointing to rock directly. Mateus will create a new PR to fix that.

@seixasxbr
Copy link
Author

Should this PR actually go to the main repository (once the related PR is merged)?

It should have been pointing to rock directly. Mateus will create a new PR to fix that.

https://github.com/rock-drivers/drivers-orogen-camera_base/pull/12/files

@seixasxbr seixasxbr merged commit 76b891b into master Jan 30, 2025
1 check passed
@seixasxbr seixasxbr deleted the undistort-param branch January 30, 2025 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants