Skip to content
This repository was archived by the owner on Dec 25, 2019. It is now read-only.

Commit 1c937d5

Browse files
authored
Initial commit
1 parent ac340d5 commit 1c937d5

31 files changed

+1616
-0
lines changed

Deployment/Licence.txt

+166
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
2+
GNU LESSER GENERAL PUBLIC LICENSE
3+
Version 3, 29 June 2007
4+
5+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
6+
Everyone is permitted to copy and distribute verbatim copies
7+
of this license document, but changing it is not allowed.
8+
9+
10+
This version of the GNU Lesser General Public License incorporates
11+
the terms and conditions of version 3 of the GNU General Public
12+
License, supplemented by the additional permissions listed below.
13+
14+
0. Additional Definitions.
15+
16+
As used herein, "this License" refers to version 3 of the GNU Lesser
17+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
18+
General Public License.
19+
20+
"The Library" refers to a covered work governed by this License,
21+
other than an Application or a Combined Work as defined below.
22+
23+
An "Application" is any work that makes use of an interface provided
24+
by the Library, but which is not otherwise based on the Library.
25+
Defining a subclass of a class defined by the Library is deemed a mode
26+
of using an interface provided by the Library.
27+
28+
A "Combined Work" is a work produced by combining or linking an
29+
Application with the Library. The particular version of the Library
30+
with which the Combined Work was made is also called the "Linked
31+
Version".
32+
33+
The "Minimal Corresponding Source" for a Combined Work means the
34+
Corresponding Source for the Combined Work, excluding any source code
35+
for portions of the Combined Work that, considered in isolation, are
36+
based on the Application, and not on the Linked Version.
37+
38+
The "Corresponding Application Code" for a Combined Work means the
39+
object code and/or source code for the Application, including any data
40+
and utility programs needed for reproducing the Combined Work from the
41+
Application, but excluding the System Libraries of the Combined Work.
42+
43+
1. Exception to Section 3 of the GNU GPL.
44+
45+
You may convey a covered work under sections 3 and 4 of this License
46+
without being bound by section 3 of the GNU GPL.
47+
48+
2. Conveying Modified Versions.
49+
50+
If you modify a copy of the Library, and, in your modifications, a
51+
facility refers to a function or data to be supplied by an Application
52+
that uses the facility (other than as an argument passed when the
53+
facility is invoked), then you may convey a copy of the modified
54+
version:
55+
56+
a) under this License, provided that you make a good faith effort to
57+
ensure that, in the event an Application does not supply the
58+
function or data, the facility still operates, and performs
59+
whatever part of its purpose remains meaningful, or
60+
61+
b) under the GNU GPL, with none of the additional permissions of
62+
this License applicable to that copy.
63+
64+
3. Object Code Incorporating Material from Library Header Files.
65+
66+
The object code form of an Application may incorporate material from
67+
a header file that is part of the Library. You may convey such object
68+
code under terms of your choice, provided that, if the incorporated
69+
material is not limited to numerical parameters, data structure
70+
layouts and accessors, or small macros, inline functions and templates
71+
(ten or fewer lines in length), you do both of the following:
72+
73+
a) Give prominent notice with each copy of the object code that the
74+
Library is used in it and that the Library and its use are
75+
covered by this License.
76+
77+
b) Accompany the object code with a copy of the GNU GPL and this license
78+
document.
79+
80+
4. Combined Works.
81+
82+
You may convey a Combined Work under terms of your choice that,
83+
taken together, effectively do not restrict modification of the
84+
portions of the Library contained in the Combined Work and reverse
85+
engineering for debugging such modifications, if you also do each of
86+
the following:
87+
88+
a) Give prominent notice with each copy of the Combined Work that
89+
the Library is used in it and that the Library and its use are
90+
covered by this License.
91+
92+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
93+
document.
94+
95+
c) For a Combined Work that displays copyright notices during
96+
execution, include the copyright notice for the Library among
97+
these notices, as well as a reference directing the user to the
98+
copies of the GNU GPL and this license document.
99+
100+
d) Do one of the following:
101+
102+
0) Convey the Minimal Corresponding Source under the terms of this
103+
License, and the Corresponding Application Code in a form
104+
suitable for, and under terms that permit, the user to
105+
recombine or relink the Application with a modified version of
106+
the Linked Version to produce a modified Combined Work, in the
107+
manner specified by section 6 of the GNU GPL for conveying
108+
Corresponding Source.
109+
110+
1) Use a suitable shared library mechanism for linking with the
111+
Library. A suitable mechanism is one that (a) uses at run time
112+
a copy of the Library already present on the user's computer
113+
system, and (b) will operate properly with a modified version
114+
of the Library that is interface-compatible with the Linked
115+
Version.
116+
117+
e) Provide Installation Information, but only if you would otherwise
118+
be required to provide such information under section 6 of the
119+
GNU GPL, and only to the extent that such information is
120+
necessary to install and execute a modified version of the
121+
Combined Work produced by recombining or relinking the
122+
Application with a modified version of the Linked Version. (If
123+
you use option 4d0, the Installation Information must accompany
124+
the Minimal Corresponding Source and Corresponding Application
125+
Code. If you use option 4d1, you must provide the Installation
126+
Information in the manner specified by section 6 of the GNU GPL
127+
for conveying Corresponding Source.)
128+
129+
5. Combined Libraries.
130+
131+
You may place library facilities that are a work based on the
132+
Library side by side in a single library together with other library
133+
facilities that are not Applications and are not covered by this
134+
License, and convey such a combined library under terms of your
135+
choice, if you do both of the following:
136+
137+
a) Accompany the combined library with a copy of the same work based
138+
on the Library, uncombined with any other library facilities,
139+
conveyed under the terms of this License.
140+
141+
b) Give prominent notice with the combined library that part of it
142+
is a work based on the Library, and explaining where to find the
143+
accompanying uncombined form of the same work.
144+
145+
6. Revised Versions of the GNU Lesser General Public License.
146+
147+
The Free Software Foundation may publish revised and/or new versions
148+
of the GNU Lesser General Public License from time to time. Such new
149+
versions will be similar in spirit to the present version, but may
150+
differ in detail to address new problems or concerns.
151+
152+
Each version is given a distinguishing version number. If the
153+
Library as you received it specifies that a certain numbered version
154+
of the GNU Lesser General Public License "or any later version"
155+
applies to it, you have the option of following the terms and
156+
conditions either of that published version or of any later version
157+
published by the Free Software Foundation. If the Library as you
158+
received it does not specify a version number of the GNU Lesser
159+
General Public License, you may choose any version of the GNU Lesser
160+
General Public License ever published by the Free Software Foundation.
161+
162+
If the Library as you received it specifies that a proxy can decide
163+
whether future versions of the GNU Lesser General Public License shall
164+
apply, that proxy's public statement of acceptance of any version is
165+
permanent authorization for you to choose that version for the
166+
Library.

Deployment/Logo/DotDevignetting.pptx

30.9 KB
Binary file not shown.

Deployment/Logo/logo-big.png

43.1 KB
Loading

Deployment/Logo/logo-small.png

6.98 KB
Loading

Deployment/Setup.NuGet/Build.cmd

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
:: The script was taken from: Accord.NET project and modified
2+
@echo off
3+
4+
echo.
5+
echo DotDevignetting Framework NuGet packages builder
6+
echo =========================================================
7+
echo.
8+
echo This Windows batch file uses NuGet to automatically
9+
echo build the NuGet packages versions of the framework.
10+
echo.
11+
12+
timeout /T 5
13+
14+
:: Set version info
15+
set version=1.0.1
16+
set output=%cd%\bin\
17+
18+
:: Create output directory
19+
IF NOT EXIST %output%\nul (
20+
mkdir %output%
21+
)
22+
23+
:: Remove old files
24+
:forfiles /p %output% /m *.nupkg /c "cmd /c del @file"
25+
26+
echo.
27+
echo Creating packages...
28+
29+
forfiles /s /m *.nuspec /c "cmd /c %cd%\nuget.exe pack "@Path" -Version %version% -OutputDirectory %output%"
30+
31+
:eof
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0"?>
2+
3+
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
4+
<metadata>
5+
<id>DotDevignetting</id>
6+
<version>$version$</version>
7+
<title>DotDevignetting</title>
8+
<authors>Darko Jurić</authors>
9+
<owners>Darko Jurić</owners>
10+
<licenseUrl>https://raw.githubusercontent.com/dajuric/dot-devignetting/master/Deployment/Licence.txt</licenseUrl>
11+
<projectUrl>https://github.com/dajuric/dot-devignetting</projectUrl>
12+
<iconUrl>https://raw.githubusercontent.com/dajuric/dot-devignetting/master/Deployment/Logo/logo-small.png</iconUrl>
13+
<requireLicenseAcceptance>true</requireLicenseAcceptance>
14+
<description>Fast automatic image and video de-vignetting.</description>
15+
<summary>Fast automatic image and video de-vignetting.</summary>
16+
<tags>devignetting, real-time devignetting, image-processing</tags>
17+
18+
<dependencies>
19+
<dependency id="DotImaging.GenericImage" version="4.8.3" />
20+
</dependencies>
21+
22+
<frameworkAssemblies>
23+
</frameworkAssemblies>
24+
</metadata>
25+
26+
<files>
27+
<file src="..\..\..\bin\DotDevignetting.dll" target="lib\net45\DotDevignetting.dll" />
28+
<file src="..\..\..\bin\DotDevignetting.xml" target="lib\net45\DotDevignetting.xml" />
29+
30+
<file src="readmeDotDevignetting.txt" target="readme.txt" />
31+
</files>
32+
</package>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Fast automatic image and video de-vignetting.
2+
3+
1) image devignetting (**requires DotImaging.IO, DoTimaging.UI**)
4+
5+
var image = ImageIO.LoadColor("<your imge>").Clone();
6+
image.Devignette(optimizeVignettingCentre: true);
7+
image.Show("Corrected", scaleForm: true);
8+
9+
10+
2) video devignetting (**requires DotImaging.IO, DoTimaging.UI**)
11+
12+
//initialize capture and buffer
13+
VideoCaptureBase capture = new FileCapture("<your video>"); // /*or*/ capture = new CameraCapture();
14+
Bgr<byte>[,] frame = null;
15+
16+
//initialize devignetting alg
17+
capture.ReadTo(ref frame);
18+
var devignetting = new Devignetting(frame, optimizeVignettingCentre: true);
19+
20+
//do the job
21+
while(true)
22+
{
23+
capture.ReadTo(ref frame);
24+
if (frame == null) break;
25+
26+
devignetting.DevignetteSingleStep(frame); //will perform faster once the optimization procedure is done
27+
frame.Show("Corrected");
28+
}
29+
30+
capture.Close();

Deployment/Setup.NuGet/NuGet.exe

3.77 MB
Binary file not shown.

Deployment/Setup.NuGet/Push.cmd

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
:: The script was taken from: Accord.NET project and modified
2+
@echo off
3+
4+
echo.
5+
echo DotDevignetting Framework NuGet package publisher
6+
echo =========================================================
7+
echo.
8+
echo This Windows batch file uses NuGet to automatically
9+
echo push the framework packages to the gallery.
10+
echo.
11+
12+
timeout /T 5
13+
14+
:: Directory settings
15+
set output=%~dp0bin\
16+
set current=%~dp0
17+
18+
echo.
19+
echo Current directory: %current%
20+
echo Output directory: %output%
21+
echo.
22+
23+
forfiles /p %output% /m *.nupkg /c "cmd /c %current%\NuGet.exe push @file -Source https://www.nuget.org/api/v2/package"
24+
25+
pause
+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{131A083D-F12A-48FA-8A7D-381C6B5C222D}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>Setup.NuGet</RootNamespace>
11+
<AssemblyName>Setup.NuGet</AssemblyName>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
</PropertyGroup>
15+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16+
<DebugSymbols>true</DebugSymbols>
17+
<DebugType>full</DebugType>
18+
<Optimize>false</Optimize>
19+
<OutputPath>bin\</OutputPath>
20+
<DefineConstants>DEBUG;TRACE</DefineConstants>
21+
<ErrorReport>prompt</ErrorReport>
22+
<WarningLevel>4</WarningLevel>
23+
</PropertyGroup>
24+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25+
<DebugType>pdbonly</DebugType>
26+
<Optimize>true</Optimize>
27+
<OutputPath>bin\</OutputPath>
28+
<DefineConstants>TRACE</DefineConstants>
29+
<ErrorReport>prompt</ErrorReport>
30+
<WarningLevel>4</WarningLevel>
31+
</PropertyGroup>
32+
<ItemGroup>
33+
<None Include="Build.cmd" />
34+
<None Include="Push.cmd" />
35+
<None Include="DotDevignetting\DotDevignetting.nuspec" />
36+
<None Include="UpdateNuGet.cmd" />
37+
</ItemGroup>
38+
<ItemGroup>
39+
<Folder Include="Properties\" />
40+
</ItemGroup>
41+
<ItemGroup>
42+
<Content Include="DotDevignetting\readmeDotDevignetting.txt" />
43+
</ItemGroup>
44+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
45+
<!-- Redefine targets (do nothing) -->
46+
<Target Name="Build">
47+
</Target>
48+
<Target Name="Rebuild">
49+
</Target>
50+
<PropertyGroup>
51+
<PreBuildEvent>
52+
</PreBuildEvent>
53+
</PropertyGroup>
54+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
55+
Other similar extension points exist, see Microsoft.Common.targets.
56+
<Target Name="BeforeBuild">
57+
</Target>
58+
<Target Name="AfterBuild">
59+
</Target> -->
60+
</Project>
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
:: The script was taken from: Accord.NET project and modified
2+
@echo off
3+
4+
:: Make sure the nuget executable is writable
5+
attrib -R NuGet.exe
6+
7+
echo.
8+
echo Updating NuGet...
9+
cmd /c nuget.exe update -Self
10+
11+
:eof

Deployment/sample-1.jpg

175 KB
Loading

Deployment/sample-2.jpg

163 KB
Loading

0 commit comments

Comments
 (0)