-
Notifications
You must be signed in to change notification settings - Fork 231
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
Conversation
xcore/interface/stitcher.h
Outdated
typedef std::vector<PointFloat2> PointMap; | ||
|
||
public: | ||
CubeMapModel (const uint32_t image_width, const uint32_t image_height); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
tests/test-surround-view.cpp
Outdated
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]); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Thanks! |
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