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

Implement conversion from equirectangular projection to cubemap #778

Merged
merged 4 commits into from
Aug 17, 2021

Conversation

unishift
Copy link
Contributor

@unishift unishift commented Aug 5, 2021

Conversion is implemented by reusing geomap code, which is used at least for topview generation. New code calculates remap matrix and applies it with any supported geomap module: soft, gles or vulkan.

Usage example is provided in test-surround-view.

This pull request is part of Google Summer of Code project: https://summerofcode.withgoogle.com/projects/#4637812755791872

typedef std::vector<PointFloat2> PointMap;

public:
CubeMapModel (const uint32_t image_width, const uint32_t image_height);
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we need to declare a const type here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed const from this declaration

remap_topview_buf (outs[IdxStitch], outs[IdxTopView]);
write_out_image (outs[IdxTopView], frame_num);
if (out_config.save_cubemap) {
remap_topview_buf (outs[out_config.stitch_index], outs[out_config.cubemap_index]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we change this "remap_topview_buf" function name to "remap_buf"? since this function is used by topview & cubmap remap.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense. Renamed this function. Thanks!

This function is now used also for cubemap generation, not only topview
@zongwave
Copy link
Collaborator

Thanks!

@zongwave zongwave merged commit d254496 into intel:master Aug 17, 2021
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.

2 participants