Skip to content

Commit 083a346

Browse files
author
Kaspar Schmid
committed
updated tutorial, added vcjproj for plugin development
1 parent 684ecbb commit 083a346

File tree

7 files changed

+152
-9
lines changed

7 files changed

+152
-9
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Makefile.Release
4141

4242
# Windows
4343
*.sln
44-
*.vcxproj
44+
#*.vcxproj
4545
*.vcxproj.filters
4646

4747
# temporary and html doc files

IPL/src/processes/IPLBinarizeOtsu.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ bool IPLBinarizeOtsu::processInputData(IPLImage* image , int, bool)
6565
IPLImagePlane* plane = image->plane( planeNr );
6666
IPLImagePlane* newplane = _result->plane( planeNr );
6767

68-
69-
70-
7168
double histogram[256];
7269
for(int i = 0; i < 256; i++)
7370
histogram[i] = 0.0;

IPL/src/processes/IPLMergePlanes.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ void IPLMergePlanes::init()
3232
setClassName("IPLMergePlanes");
3333
setTitle("Merge Planes");
3434
setCategory(IPLProcess::CATEGORY_CONVERSIONS);
35-
setDescription("Converts color planes into a color image. The input planes may be images in"
36-
"the RGB, HSI, HLS, or HSV color system");
35+
setDescription("Converts color planes into a color image. The input planes may be images in "
36+
"the RGB, HSI, HLS, or HSV color system.");
3737

3838
// properties
3939
addProcessPropertyInt("input_type", "Color Model:RGB|HSV|HSL", "", _inputType, IPL_WIDGET_RADIOBUTTONS);
4040

4141
// inputs and outputs
42-
addInput("Plane 1", IPL_IMAGE_COLOR);
43-
addInput("Plane 2", IPL_IMAGE_COLOR);
44-
addInput("Plane 3", IPL_IMAGE_COLOR);
42+
addInput("Plane 1", IPL_IMAGE_GRAYSCALE);
43+
addInput("Plane 2", IPL_IMAGE_GRAYSCALE);
44+
addInput("Plane 3", IPL_IMAGE_GRAYSCALE);
4545
addOutput("Image", IPL_IMAGE_COLOR);
4646

4747
}
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Release|x64">
5+
<Configuration>Release</Configuration>
6+
<Platform>x64</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Debug|x64">
9+
<Configuration>Debug</Configuration>
10+
<Platform>x64</Platform>
11+
</ProjectConfiguration>
12+
</ItemGroup>
13+
<ItemGroup>
14+
<ClCompile Include="plugin.cpp" />
15+
<ClCompile Include="%CLASSNAME%.cpp" />
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ClInclude Include="%CLASSNAME%.h" />
19+
</ItemGroup>
20+
<PropertyGroup Label="Globals">
21+
<ProjectGuid>%GUID%</ProjectGuid>
22+
<RootNamespace>%CLASSNAME%</RootNamespace>
23+
<Keyword></Keyword>
24+
</PropertyGroup>
25+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
26+
<PropertyGroup Condition="&apos;$(Configuration)|$(Platform)&apos;==&apos;Release|x64&apos;" Label="Configuration">
27+
<PlatformToolSet>v120</PlatformToolSet>
28+
<OutputDirectory>%PLUGINPATH%/</OutputDirectory>
29+
<ATLMinimizesCRunTimeLibraryUsage>false</ATLMinimizesCRunTimeLibraryUsage>
30+
<CharacterSet>NotSet</CharacterSet>
31+
<ConfigurationType>DynamicLibrary</ConfigurationType>
32+
<IntermediateDirectory>release\</IntermediateDirectory>
33+
<PrimaryOutput>%CLASSNAME%</PrimaryOutput>
34+
</PropertyGroup>
35+
<PropertyGroup Condition="&apos;$(Configuration)|$(Platform)&apos;==&apos;Debug|x64&apos;" Label="Configuration">
36+
<PlatformToolSet>v120</PlatformToolSet>
37+
<OutputDirectory>%PLUGINPATH%/</OutputDirectory>
38+
<ATLMinimizesCRunTimeLibraryUsage>false</ATLMinimizesCRunTimeLibraryUsage>
39+
<CharacterSet>NotSet</CharacterSet>
40+
<ConfigurationType>DynamicLibrary</ConfigurationType>
41+
<IntermediateDirectory>debug\</IntermediateDirectory>
42+
<PrimaryOutput>%CLASSNAME%</PrimaryOutput>
43+
</PropertyGroup>
44+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
45+
<ImportGroup Label="ExtensionSettings" />
46+
<ImportGroup Condition="&apos;$(Configuration)|$(Platform)&apos;==&apos;Release|x64&apos;" Label="PropertySheets">
47+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists(&apos;$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props&apos;)" />
48+
</ImportGroup>
49+
<ImportGroup Condition="&apos;$(Configuration)|$(Platform)&apos;==&apos;Debug|x64&apos;" Label="PropertySheets">
50+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists(&apos;$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props&apos;)" />
51+
</ImportGroup>
52+
<PropertyGroup Label="UserMacros" />
53+
<PropertyGroup>
54+
<OutDir Condition="&apos;$(Configuration)|$(Platform)&apos;==&apos;Release|x64&apos;">%PLUGINPATH%</OutDir>
55+
<IntDir Condition="&apos;$(Configuration)|$(Platform)&apos;==&apos;Release|x64&apos;">release\</IntDir>
56+
<TargetName Condition="&apos;$(Configuration)|$(Platform)&apos;==&apos;Release|x64&apos;">%CLASSNAME%</TargetName>
57+
<IgnoreImportLibrary Condition="&apos;$(Configuration)|$(Platform)&apos;==&apos;Release|x64&apos;">true</IgnoreImportLibrary>
58+
<LinkIncremental Condition="&apos;$(Configuration)|$(Platform)&apos;==&apos;Release|x64&apos;">false</LinkIncremental>
59+
<OutDir Condition="&apos;$(Configuration)|$(Platform)&apos;==&apos;Debug|x64&apos;">%PLUGINPATH%</OutDir>
60+
<IntDir Condition="&apos;$(Configuration)|$(Platform)&apos;==&apos;Debug|x64&apos;">debug\</IntDir>
61+
<TargetName Condition="&apos;$(Configuration)|$(Platform)&apos;==&apos;Debug|x64&apos;">%CLASSNAME%</TargetName>
62+
<IgnoreImportLibrary Condition="&apos;$(Configuration)|$(Platform)&apos;==&apos;Debug|x64&apos;">true</IgnoreImportLibrary>
63+
</PropertyGroup>
64+
<ItemDefinitionGroup Condition="&apos;$(Configuration)|$(Platform)&apos;==&apos;Release|x64&apos;">
65+
<ClCompile>
66+
<AdditionalIncludeDirectories>..\_lib\include;..\_lib\include\opencv;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
67+
<AdditionalOptions>-Zm200 -Zc:strictStrings -w34100 -w34189 %(AdditionalOptions)</AdditionalOptions>
68+
<AssemblerListingLocation>release\</AssemblerListingLocation>
69+
<BrowseInformation>false</BrowseInformation>
70+
<DebugInformationFormat>None</DebugInformationFormat>
71+
<ExceptionHandling>Sync</ExceptionHandling>
72+
<ObjectFileName>release\</ObjectFileName>
73+
<Optimization>MaxSpeed</Optimization>
74+
<PreprocessorDefinitions>_WINDOWS;UNICODE;WIN32;WIN64;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
75+
<PreprocessToFile>false</PreprocessToFile>
76+
<ProgramDataBaseFileName></ProgramDataBaseFileName>
77+
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
78+
<RuntimeTypeInfo>true</RuntimeTypeInfo>
79+
<SuppressStartupBanner>true</SuppressStartupBanner>
80+
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
81+
<WarningLevel>Level3</WarningLevel>
82+
</ClCompile>
83+
<Link>
84+
<AdditionalDependencies>%ROOTPATH%\IPL.lib;%(AdditionalDependencies)</AdditionalDependencies>
85+
<AdditionalLibraryDirectories>%ROOTPATH%;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
86+
<DataExecutionPrevention>true</DataExecutionPrevention>
87+
<GenerateDebugInformation>false</GenerateDebugInformation>
88+
<IgnoreImportLibrary>true</IgnoreImportLibrary>
89+
<LinkDLL>true</LinkDLL>
90+
<LinkIncremental>false</LinkIncremental>
91+
<OutputFile>$(OutDir)/%CLASSNAME%.dll</OutputFile>
92+
<RandomizedBaseAddress>true</RandomizedBaseAddress>
93+
<SubSystem>Windows</SubSystem>
94+
<SuppressStartupBanner>true</SuppressStartupBanner>
95+
</Link>
96+
<Midl>
97+
<DefaultCharType>Unsigned</DefaultCharType>
98+
<EnableErrorChecks>None</EnableErrorChecks>
99+
<WarningLevel>0</WarningLevel>
100+
</Midl>
101+
<ResourceCompile>
102+
<PreprocessorDefinitions>_WINDOWS;UNICODE;WIN32;WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
103+
</ResourceCompile>
104+
</ItemDefinitionGroup>
105+
<ItemDefinitionGroup Condition="&apos;$(Configuration)|$(Platform)&apos;==&apos;Debug|x64&apos;">
106+
<ClCompile>
107+
<AdditionalIncludeDirectories>..\_lib\include;..\_lib\include\opencv;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
108+
<AdditionalOptions>-Zm200 -w34100 -w34189 %(AdditionalOptions)</AdditionalOptions>
109+
<AssemblerListingLocation>debug\</AssemblerListingLocation>
110+
<BrowseInformation>false</BrowseInformation>
111+
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
112+
<ExceptionHandling>Sync</ExceptionHandling>
113+
<ObjectFileName>debug\</ObjectFileName>
114+
<Optimization>Disabled</Optimization>
115+
<PreprocessorDefinitions>_WINDOWS;UNICODE;WIN32;WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
116+
<PreprocessToFile>false</PreprocessToFile>
117+
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
118+
<RuntimeTypeInfo>true</RuntimeTypeInfo>
119+
<SuppressStartupBanner>true</SuppressStartupBanner>
120+
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>
121+
<WarningLevel>Level3</WarningLevel>
122+
</ClCompile>
123+
<Link>
124+
<AdditionalDependencies>%ROOTPATH%\IPL.lib;%(AdditionalDependencies)</AdditionalDependencies>
125+
<AdditionalLibraryDirectories>%ROOTPATH%;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
126+
<DataExecutionPrevention>true</DataExecutionPrevention>
127+
<GenerateDebugInformation>true</GenerateDebugInformation>
128+
<IgnoreImportLibrary>true</IgnoreImportLibrary>
129+
<LinkDLL>true</LinkDLL>
130+
<OutputFile>$(OutDir)/%CLASSNAME%.dll</OutputFile>
131+
<RandomizedBaseAddress>true</RandomizedBaseAddress>
132+
<SubSystem>Windows</SubSystem>
133+
<SuppressStartupBanner>true</SuppressStartupBanner>
134+
</Link>
135+
<Midl>
136+
<DefaultCharType>Unsigned</DefaultCharType>
137+
<EnableErrorChecks>None</EnableErrorChecks>
138+
<WarningLevel>0</WarningLevel>
139+
</Midl>
140+
<ResourceCompile>
141+
<PreprocessorDefinitions>_WINDOWS;UNICODE;WIN32;WIN64;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
142+
</ResourceCompile>
143+
</ItemDefinitionGroup>
144+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
145+
<ImportGroup Label="ExtensionTargets" />
146+
</Project>

ImagePlay/res/tutorial.afphoto

7.43 MB
Binary file not shown.

ImagePlay/res/tutorial.png

795 KB
Loading

ImagePlay/res/tutorial@2x.png

897 KB
Loading

0 commit comments

Comments
 (0)