GithubHelp home page GithubHelp logo

lesialin / image_warp Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 6.23 MB

image warp in c function

C++ 93.07% C 6.93%
fixed-points image-warping image-warps perspective-transform perspective-transformation fixed-point-arithmetic

image_warp's Introduction

Image Warp

This repo is implementation image warp in c function, there are floating and fixed function for warping image.

I reference the python function in https://github.com/eborboihuc/rotate_3d . And you may refine the cal_trans_matrix input in main.cpp to get the warping matrix.

// the input rotation order, roll, pitch, yaw in degree
cal_trans_matrix(0.0, 0.0,10, image_width, image_height, trans_matrix);

usage

mkdir build
cd build
cmake ..
cmake --build .

and there will be prebuilt/image_warp.exe

run

./image_warp.exe ../lean.png

result

--------------------------
Image warp in float operation:
Time measured: 0.014680 seconds.
--------------------------
Image warp in fixed-point operation:
Time measured: 0.008530 seconds.

rotate yaw 10 degree

test_fixed

image_warp's People

Contributors

lesialin avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.