View Full Version : Compiling Reform
Schnoodledorfer
1st July 2011, 06:52
As I mentioned here (http://forum.doom9.org/showthread.php?t=161774), I ran into a bug when I tried to use the reform plugin (skew and deskew). In this case, the problem was very easy to spot, even though I have no experience with cpp and haven't done PC programming. So, I downloaded Microsoft C++ express studio and was going to compile the dll. But I don't see how this can work.
The code has this line: #include "CubicInt.cpp"
Where does that come from? It doesn't seem to be in the Avisynth source code and Google is no help.
Robert Martens
1st July 2011, 07:14
It looks like CubicInt.cpp is part of the source of V.C. Mohan's EffectsMany plugin, available from the same page as his other work: http://avisynth.org/vcmohan/index.html
Schnoodledorfer
2nd July 2011, 04:06
:thanks: It was. After sufficient battling with the Visual C++ IDE I even managed to get it compiled. :)
vcmohan
9th July 2011, 03:53
Sorry for not including the cubicInt.cpp with the source of Reform Plugin. I have several small such code snippets in a separate directory which I use in my plugins. Shortly I will make this directory available in my plugins page.
Emulgator
11th July 2011, 11:07
Schnoodledorfer, while you are working on Reform, which I greatly appreciate:
Ther might be the chance to embed a better resizer into Reform.
While looking for a decent deskewer a year ago I had to compare VCMohan's Reform with VCMohan's Perspective
and found the latter to be more accurate so that I stuck to Perspective for quality
although I needed no exponentially growing transformation back then and even decided to live with the resulting curved borders.
Maybe Perspective's resizer engine is reusable and can be set to act linear with coordinates,
not relating on the previous pixel's values as a growth value suggests.
vcmohan
15th August 2011, 04:27
I have replaced the cubic resizer with a Lanczos 6 tap resizer. Pl try and tell me if this is better. While Reform works with straight lines, Perspective uses the more natural curves. It is your option. For very small degree of distortions they may not differ much.
Emulgator
15th August 2011, 07:39
Beautiful, vcmohan !
Many thanks ! Will test soon.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.