Skip to content

Commit

Permalink
Updated Java GUI
Browse files Browse the repository at this point in the history
Added last bgs algorithms.
  • Loading branch information
andrewssobral committed May 1, 2015
1 parent cff12ab commit 350243b
Show file tree
Hide file tree
Showing 13 changed files with 711 additions and 205 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
etc/
binaries/
java_gui/dist/
java_gui/build/
java_gui/bgslibrary.exe
python/
qt_gui/
vs2013/
vs2013/
fet/etc/
File renamed without changes.
12 changes: 6 additions & 6 deletions bgslibrary_vs2010_opencv.txt → README_VISUAL_STUDIO_USERS.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---------------------------------------------------
BGSLibrary with Visual Studio 2010 and Opencv 2.4.9
BGSLibrary with Visual Studio 2010 and Opencv 2.4.x
---------------------------------------------------

1) Clone our VS2010 example project at [vs2010] folder
Expand All @@ -8,10 +8,10 @@ https://github.com/andrewssobral/bgslibrary/tree/master/vs2010
Or configure manually by:

1) Install OpenCV
1.a) Download OpenCV 2.4.9 from http://opencv.org/
2.b) Install in: C:\OpenCV2.4.9
1.a) Download OpenCV 2.4.x from http://opencv.org/
2.b) Install in: C:\OpenCV2.4.x
2.c) Add OpenCV binaries in your Path
C:\OpenCV2.4.9\build\x86\vc10\bin
C:\OpenCV2.4.x\build\x86\vc10\bin

2) Download BGSLibrary
2.a) Clone bgslibrary on GitHub at C:\bgslibrary
Expand All @@ -29,9 +29,9 @@ C:\OpenCV2.4.9\build\x86\vc10\bin
3.j) Click on Project->Properties
3.k) Change [Output Directory] to ..\
3.l) Add OpenCV include in [C/C++] -> [Additional Include Directories]
C:\OpenCV2.4.9\build\include;C:\OpenCV2.4.9\build\include\opencv;
C:\OpenCV2.4.x\build\include;C:\OpenCV2.4.x\build\include\opencv;
3.m) Add OpenCV libraries in [Linker]->[Input]
C:\OpenCV2.4.9\build\x86\vc10\lib\*.lib
C:\OpenCV2.4.x\build\x86\vc10\lib\*.lib
3.n) Click in Build and wait
3.o) Run C:\bgslibrary\bgslibrary.exe
Enjoy!
7 changes: 7 additions & 0 deletions config/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Ignore everything in this directory
*
# Except these files
!.gitignore
!FrameProcessor.xml
!PreProcessor.xml
!VideoCapture.xml
Binary file modified java_gui/bgslibrary_gui.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions java_gui/config/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Ignore everything in this directory
*
# Except these files
!.gitignore
!FrameProcessor.xml
!PreProcessor.xml
!VideoCapture.xml
2 changes: 1 addition & 1 deletion java_gui/nbproject/private/private.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ do.depend=false
do.jar=true
javac.debug=true
javadoc.preview=true
user.properties.file=C:\\Users\\asobra01\\AppData\\Roaming\\NetBeans\\8.0\\build.properties
user.properties.file=C:\\Users\\asobra01\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties
7 changes: 6 additions & 1 deletion java_gui/nbproject/private/private.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group/>
<group>
<file>file:/C:/GitHub/bgslibrary/java_gui/src/br/com/bgslibrary/Main.java</file>
<file>file:/C:/GitHub/bgslibrary/java_gui/src/br/com/bgslibrary/entity/Command.java</file>
<file>file:/C:/GitHub/bgslibrary/java_gui/src/br/com/bgslibrary/entity/Configuration.java</file>
<file>file:/C:/GitHub/bgslibrary/java_gui/src/br/com/bgslibrary/gui/MainFrame.java</file>
</group>
</open-files>
</project-private>
7 changes: 7 additions & 0 deletions java_gui/src/br/com/bgslibrary/entity/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,11 @@ public interface Configuration
final String T2FMRF_UV = "T2FMRF_UV.xml";
final String FuzzySugenoIntegral = "FuzzySugenoIntegral.xml";
final String FuzzyChoquetIntegral = "FuzzyChoquetIntegral.xml";

final String KDE = "KDE.xml";
final String IndependentMultimodalBGS = "IndependentMultimodalBGS.xml";
final String MultiCueBGS = "MultiCueBGS.xml";
final String SigmaDeltaBGS = "SigmaDeltaBGS.xml";
final String SuBSENSEBGS = "SuBSENSEBGS.xml";
final String LOBSTERBGS = "LOBSTERBGS.xml";
}
416 changes: 317 additions & 99 deletions java_gui/src/br/com/bgslibrary/gui/MainFrame.form

Large diffs are not rendered by default.

435 changes: 346 additions & 89 deletions java_gui/src/br/com/bgslibrary/gui/MainFrame.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions vs2010/README.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
VISUAL STUDIO 2010 TEMPLATE PROJECT
-----------------------------------
Release|Win32
Change to [Release][Win32]

COMPATIBLE WITH:
VISUAL STUDIO 2012
VISUAL STUDIO 2013

YOU NEEDS TO INSTALL OPENCV AT:
C:\OpenCV2.4.9
C:\OpenCV2.4.10

BUILD AND RUN!
12 changes: 6 additions & 6 deletions vs2010/bgslibrary.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>C:\OpenCV2.4.9\build\include;C:\OpenCV2.4.9\build\include\opencv;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>C:\OpenCV2.4.10\build\include;C:\OpenCV2.4.10\build\include\opencv;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>C:\OpenCV2.4.9\build\x86\vc10\staticlib\*.lib;comctl32.lib;VFW32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>C:\OpenCV2.4.10\build\x86\vc10\staticlib\*.lib;comctl32.lib;VFW32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDemo|Win32'">
Expand All @@ -122,15 +122,15 @@
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>C:\OpenCV2.4.9\build\include;C:\OpenCV2.4.9\build\include\opencv;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>C:\OpenCV2.4.10\build\include;C:\OpenCV2.4.10\build\include\opencv;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>C:\OpenCV2.4.9\build\x86\vc10\staticlib\*.lib;comctl32.lib;VFW32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>C:\OpenCV2.4.10\build\x86\vc10\staticlib\*.lib;comctl32.lib;VFW32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDemo2|Win32'">
Expand All @@ -142,15 +142,15 @@
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>C:\OpenCV2.4.9\build\include;C:\OpenCV2.4.9\build\include\opencv;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>C:\OpenCV2.4.10\build\include;C:\OpenCV2.4.10\build\include\opencv;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>C:\OpenCV2.4.9\build\x86\vc10\staticlib\*.lib;comctl32.lib;VFW32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>C:\OpenCV2.4.10\build\x86\vc10\staticlib\*.lib;comctl32.lib;VFW32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
Expand Down

0 comments on commit 350243b

Please sign in to comment.