Skip to content
No description, website, or topics provided.
MATLAB
Branch: master
Clone or download
Latest commit 1c547af Nov 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data oragnize folders Nov 5, 2019
utils update Nov 5, 2019
.gitignore add result image Nov 5, 2019
LICENSE.MPL2 Create LICENSE.MPL2 Nov 6, 2019
README.md Update README.md Nov 6, 2019
main.m change name Nov 5, 2019

README.md

Cubic Stylization

Cubic stylization is a 3D stylization tool. Unlike image stylization (2D to 2D) and non-photorealistic rendering (3D to 2D), cubic stylization is a 3D to 3D stylization algorithm which takes a manifold triangle mesh as input and outputs a cubified triangle mesh.

This is a prototype implementation in MATLAB based on "Cubic Stylization" by Hsueh-Ti Derek Liu and Alec Jacobson.

Get Started

We can download the implementation by cloning the repository

git clone https://github.com/HTDerekLiu/CubicStylization_MATLAB.git

Once we download the cubic stylization code, we should also clone the only dependency gptoolbox to /path/to/gptoolbox. After cloning the gptoolbox, we need to add the path to gptoolbox by running the following commands in MATLAB

gp_subdirs = split(genpath('/path/to/gptoolbox/'),':');
addpath(strjoin(gp_subdirs(~contains(gp_subdirs,'.git')),':'));
savepath

Now we should be ready to play with cubic stylization! The main.m is the demo code of the Algorithm 1 in the paper. Running it with default parameters will give you the following result

Please visit CubicStylization_Cpp for a faster implementation in C++. Our code is licensed under MPL2. If any questions, please contact Hsueh-Ti Derek Liu (hsuehtil@cs.toronto.edu).

Bibtex

@article{Liu:CubicStyle:2019,
  title = {Cubic Stylization},
  author = {Hsueh-Ti Derek Liu and Alec Jacobson},
  year = {2019},
  journal = {ACM Transactions on Graphics}, 
}
You can’t perform that action at this time.