Coder Social home page Coder Social logo

williamyang1991 / text-effects-transfer Goto Github PK

View Code? Open in Web Editor NEW
48.0 7.0 8.0 841 KB

[CVPR 2017] Awesome Typography: Statistics-Based Text Effects Transfer

License: MIT License

MATLAB 100.00%
cvpr-2017 style-transfer text-effects text-effect

text-effects-transfer's Introduction

Text-Effects-Transfer

This is a Matlab implementation of the paper.

Shuai Yang, Jiaying Liu, Zhouhui Lian and Zongming Guo, Awesome Typography: Statistics-Based Text Effects Transfer, Accepted by IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017.

This code builds upon the PatchMatch algorithm (https://github.com/jbhuang0604/StructCompletion) implemented by Jia-Bin Huang.

It is provided for educational/research purpose only. Please consider citing our paper if you find the software useful for your work.

To run the code, please use the main function text_stylization.m.

Example:
  textEffectFinal = text_stylization('flame', 'shu', 'huo', 'imgs/', optS); 

External codes

  1. Flann: for fast approximate nearest neighbor searching.

    http://www.cs.ubc.ca/research/flann/

  2. mirt2D_mexinterp: for fast 2D linear interpolation.

    http://www.mathworks.com/matlabcentral/fileexchange/24183-2d-interpolation/content/mirt2D_mexinterp/mirt2D_mexinterp.m

Contact

Shuai Yang

[email protected]

text-effects-transfer's People

Contributors

williamyang1991 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

text-effects-transfer's Issues

Errors with 'mex mirt2D_mexinterp.cpp'

It seems that the mirt2D_mexinterp tool is not compatible with Xcode Clang++.

/Users/wangwenjing/Downloads/mirt2D_mexinterp-2/mirt2D_mexinterp/mirt2D_mexinterp.cpp:122:12:
error: assigning to 'const int *' from incompatible type 'const mwSize *' (aka 'const
unsigned long *')
    dims = mxGetDimensions(IN_Z);
           ^~~~~~~~~~~~~~~~~~~~~
/Applications/MATLAB_R2018a.app/extern/include/matrix.h:250:25: note: expanded from
macro 'mxGetDimensions'
#define mxGetDimensions mxGetDimensions_730
                        ^
/Users/wangwenjing/Downloads/mirt2D_mexinterp-2/mirt2D_mexinterp/mirt2D_mexinterp.cpp:132:13:
error: no matching function for call to 'mxCreateNumericArray_730'
    OUT_F = mxCreateNumericArray(ndim, newdims, mxDOUBLE_CLASS, mxREAL);
            ^~~~~~~~~~~~~~~~~~~~
/Applications/MATLAB_R2018a.app/extern/include/matrix.h:282:30: note: expanded from
macro 'mxCreateNumericArray'
#define mxCreateNumericArray mxCreateNumericArray_730
                             ^~~~~~~~~~~~~~~~~~~~~~~~
/Applications/MATLAB_R2018a.app/extern/include/matrix.h:1256:1: note: candidate
function not viable: no known conversion from 'int *' to 'const mwSize *' (aka 'const
unsigned long *') for 2nd argument
mxCreateNumericArray(mwSize ndim, const mwSize *dims, mxClassID classid, mxComplexity
flag);
^
/Applications/MATLAB_R2018a.app/extern/include/matrix.h:282:30: note: expanded from
macro 'mxCreateNumericArray'
#define mxCreateNumericArray mxCreateNumericArray_730
                             ^
2 errors generated.

Python version

Hi!
Thanks a lot for the code!
Will python version of the article be open sourced?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.