Skip to content

Janos95/texture_map_optimization

Repository files navigation

Texture Map Optimization

Building

To build you will need the following four dependencies : assimp, ceres, corrade, magnum and magnum-plugins If you are on linux, there will most likely be precompiled packages for assimp and ceres provided by your distros package manager. For the other three deps, I suggest compiling from source.

This project uses cmake to generate project files. To build using e.g. ninja you can use the following commands

mkdir build
cmake .. -DCMAKE_BUILD_TYPE=Release -GNinja
ninja

Example

The repository contains an application which can load a mesh and calibrated rgb images. Be aware that the mesh it is necessary for the mesh to have texture coordinates. If your mesh does not have texture coordinates, I suggest to generate them using e.g. blenders smart uv unwrap tool. Once everything is loaded you can average all rgb images into the texture and then optimize the individual poses of the rgb images to obtain a sharper texture. The inverse texture mapping and optimization is done using compute shader. Thus optimizing texture maps, even for large rgb images, should be fast.

Optimize texture colors on the gpu. Below you can see the result of rendering texture coordinates and applying the inverse texture map to map image colors onto a the texture. alt text alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published