cxcxcxcx / imgwarp-opencv Goto Github PK
View Code? Open in Web Editor NEWWarps an image by a few control points.
License: MIT License
Warps an image by a few control points.
License: MIT License
It's excellent, I use it as a warp tool. To use it as a liquification, I. E. to only move the hit point based on a radius. I can fill the surrounding area of the item I want to move with control points all right. Is there a simpler way?
I am using Microsoft Visual Studio 2017 on Windows 10, and OpenCV is installed properly and I can run some simple programs of OpenCV which can be found around the internet.
How can I run this project as a person who is not familiar enough with OpenCV on c++? I know some basic c++ already, but never been involved with a project at this scale, so please explain it step by step, and as a suggestion, better to add the explanations on how to run the code, on the README.md file.
Hello.
First for all, thanks for sharing great code.
I have found some memory crashing case.
When i put the same zero control point , some code makes crashing.
// 2 zero points
qsrc.push_back(cv::Point_<int>(0, 0));
qsrc.push_back(cv::Point_<int>(0, 0));
// 2 zero points
qdst.push_back(cv::Point_<int>(0, 0));
qdst.push_back(cv::Point_<int>(0, 0));
In imgwarp_mls_rigid.cpp
tmpP *= w[k] / miu_r;
Above code makes dividing by zero without handling.
http://chenxing.name/fun/imgwarp-js/
Any idea why this is not responding to clicks/drags/etc?
@cxcxcxcx ,thanks for your project。
when i compile the code. It comes the error as follows:
It seems several files are not exist such as ui_deformwin.h .
can u help me?
Is there an example without an interface?
I work in an animation render similar but not so good
double *w = new double[nPoint];
rDx.create(tarH, tarW);
rDy.create(tarH, tarW);
if (nPoint < 2) {
rDx.setTo(0);
rDy.setTo(0);
return; // do not release the memory of w
}
thanks for your code. u really did a great job. did your code include the Rigid Lines?
Exception in opening a file
Exception thrown at 0x77D21169 (ntdll.dll) in demo.exe: 0xC0000005: Access violation reading location 0x00740065.
Windows 10
VS2015
QT4
OpenCV 4.2
I have installed opencv3.1.0 in mu ubuntu 16.04.
I can import cv2 normally in python.
However, when I tried to compile these files using cmake
mkdir build
cd build
cmake ../src/
make
the precedure cmake is correct.
But make occures error, that cannot find cv.h in src/delaunay.h file.
Please help me .
I want to use these image warping method as my image preprocessing procedure. And I don't know how to import it into my python program.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.