검색어 입력폼

Foreground Masking

저작시기 2014.11 |등록일 2014.11.20 | 최종수정일 2014.12.01 파일확장자압축파일 (zip) | 가격 500원

소개글

위 이미지에 보시는 바와 같이 배경이미지를 바탕으로,
C#과 OpenCV를 활용하여 배경제거 및 전경 사진의 마스크를 추출 합니다.
컴퓨터 비젼 공부하시는 분들 중 다중 카메라를 이용한 모델 복원 및 모션 캡쳐에 주로 활용될 수 있습니다.

OpenCV를 활용하여 전경 이미지의 마스크를 추출하는 방법은 인터넷 웹에서 쉽게 구할 수 있지만,
본 프로그램은 OpenCvCSharp 라이브러리를 이용한 C# 언어로 구현되었다는 점에서 차이점이 있습니다.

처리 과정은 아래와 같습니다.
1. 배경이미지 로드
2. 전경이미지(입력이미지) 로드
3. 전경 이미지에 대한 마스크 이미지 생성
- BackgroundSubtractorMOG2
- MorphologyEx
- FindContours
- DrawContours
4. 파일로 저장

컴파일 실행환경

Visual Studio 2013

압축파일 내 파일목록

MoCapSoG_V_1_0/App.config
MoCapSoG_V_1_0/BackgroundSegmentation.cs
MoCapSoG_V_1_0/BackgroundSegmentation.Designer.cs
MoCapSoG_V_1_0/BackgroundSegmentation.resx
MoCapSoG_V_1_0/bin/Debug/MoCapSoG_V_1_0.exe
MoCapSoG_V_1_0/bin/Debug/MoCapSoG_V_1_0.exe.config
MoCapSoG_V_1_0/bin/Debug/MoCapSoG_V_1_0.pdb
MoCapSoG_V_1_0/bin/Debug/MoCapSoG_V_1_0.vshost.exe
MoCapSoG_V_1_0/bin/Debug/MoCapSoG_V_1_0.vshost.exe.config
MoCapSoG_V_1_0/bin/Debug/MoCapSoG_V_1_0.vshost.exe.manifest
MoCapSoG_V_1_0/bin/Debug/msvcp110.dll
MoCapSoG_V_1_0/bin/Debug/msvcr110.dll
MoCapSoG_V_1_0/bin/Debug/OpenCvSharp.Blob.dll
MoCapSoG_V_1_0/bin/Debug/OpenCvSharp.Blob.xml
MoCapSoG_V_1_0/bin/Debug/OpenCvSharp.CPlusPlus.dll
MoCapSoG_V_1_0/bin/Debug/OpenCvSharp.CPlusPlus.xml
MoCapSoG_V_1_0/bin/Debug/OpenCvSharp.dll
MoCapSoG_V_1_0/bin/Debug/OpenCvSharp.Extensions.dll
MoCapSoG_V_1_0/bin/Debug/OpenCvSharp.Extensions.xml
MoCapSoG_V_1_0/bin/Debug/OpenCvSharp.UserInterface.dll
MoCapSoG_V_1_0/bin/Debug/OpenCvSharp.xml
MoCapSoG_V_1_0/bin/Debug/OpenCvSharpExtern.dll
MoCapSoG_V_1_0/bin/Debug/opencv_calib3d2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_contrib2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_core2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_features2d2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_ffmpeg2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_flann2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_gpu2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_highgui2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_imgproc2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_imgproc2410d.dll
MoCapSoG_V_1_0/bin/Debug/opencv_legacy2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_ml2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_nonfree2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_objdetect2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_ocl2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_photo2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_photo2410d.dll
MoCapSoG_V_1_0/bin/Debug/opencv_stitching2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_superres2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_video2410.dll
MoCapSoG_V_1_0/bin/Debug/opencv_videostab2410.dll
MoCapSoG_V_1_0/bin/Release/
MoCapSoG_V_1_0/ListViewExtensions.cs
MoCapSoG_V_1_0/MainForm.cs
MoCapSoG_V_1_0/MainForm.Designer.cs
MoCapSoG_V_1_0/MainForm.resx
MoCapSoG_V_1_0/MoCapSoG_V_1_0.csproj
MoCapSoG_V_1_0/obj/Debug/DesignTimeResolveAssemblyReferences.cache
MoCapSoG_V_1_0/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
MoCapSoG_V_1_0/obj/Debug/MoCapSoG_V_1_0.BackgroundSegmentation.resources
MoCapSoG_V_1_0/obj/Debug/MoCapSoG_V_1_0.csproj.FileListAbsolute.txt
MoCapSoG_V_1_0/obj/Debug/MoCapSoG_V_1_0.csproj.GenerateResource.Cache
MoCapSoG_V_1_0/obj/Debug/MoCapSoG_V_1_0.csprojResolveAssemblyReference.cache
MoCapSoG_V_1_0/obj/Debug/MoCapSoG_V_1_0.exe
MoCapSoG_V_1_0/obj/Debug/MoCapSoG_V_1_0.MainForm.resources
MoCapSoG_V_1_0/obj/Debug/MoCapSoG_V_1_0.pdb
MoCapSoG_V_1_0/obj/Debug/MoCapSoG_V_1_0.Properties.Resources.resources
MoCapSoG_V_1_0/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
MoCapSoG_V_1_0/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
MoCapSoG_V_1_0/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
MoCapSoG_V_1_0/obj/Debug/TempPE/
MoCapSoG_V_1_0/Program.cs
MoCapSoG_V_1_0/Properties/AssemblyInfo.cs
MoCapSoG_V_1_0/Properties/Resources.Designer.cs
MoCapSoG_V_1_0/Properties/Resources.resx
MoCapSoG_V_1_0/Properties/Settings.Designer.cs
MoCapSoG_V_1_0/Properties/Settings.settings
MoCapSoG_V_1_0.sln
MoCapSoG_V_1_0.v12.suo
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/msvcp110.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/msvcr110.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/OpenCvSharpExtern.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_calib3d2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_contrib2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_core2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_features2d2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_ffmpeg2410_64.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_flann2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_gpu2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_highgui2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_imgproc2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_legacy2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_ml2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_nonfree2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_objdetect2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_ocl2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_photo2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_stitching2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_superres2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_video2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x64/opencv_videostab2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/msvcp110.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/msvcr110.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/OpenCvSharpExtern.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_calib3d2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_contrib2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_core2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_features2d2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_ffmpeg2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_flann2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_gpu2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_highgui2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_imgproc2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_imgproc2410d.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_legacy2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_ml2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_nonfree2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_objdetect2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_ocl2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_photo2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_photo2410d.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_stitching2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_superres2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_video2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/Content/dll/x86/opencv_videostab2410.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net20/OpenCvSharp.Blob.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net20/OpenCvSharp.Blob.dll.config
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net20/OpenCvSharp.Blob.XML
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net20/OpenCvSharp.CPlusPlus.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net20/OpenCvSharp.CPlusPlus.dll.config
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net20/OpenCvSharp.CPlusPlus.XML
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net20/OpenCvSharp.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net20/OpenCvSharp.dll.config
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net20/OpenCvSharp.UserInterface.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net20/OpenCvSharp.XML
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net35/OpenCvSharp.Blob.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net35/OpenCvSharp.Blob.dll.config
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net35/OpenCvSharp.Blob.XML
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net35/OpenCvSharp.CPlusPlus.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net35/OpenCvSharp.CPlusPlus.dll.config
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net35/OpenCvSharp.CPlusPlus.XML
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net35/OpenCvSharp.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net35/OpenCvSharp.dll.config
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net35/OpenCvSharp.Extensions.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net35/OpenCvSharp.Extensions.XML
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net35/OpenCvSharp.UserInterface.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net35/OpenCvSharp.XML
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net40/OpenCvSharp.Blob.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net40/OpenCvSharp.Blob.dll.config
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net40/OpenCvSharp.Blob.XML
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net40/OpenCvSharp.CPlusPlus.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net40/OpenCvSharp.CPlusPlus.dll.config
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net40/OpenCvSharp.CPlusPlus.XML
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net40/OpenCvSharp.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net40/OpenCvSharp.dll.config
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net40/OpenCvSharp.Extensions.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net40/OpenCvSharp.Extensions.XML
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net40/OpenCvSharp.UserInterface.dll
OpenCvSharp-AnyCPU.2.4.10.20141111/lib/net40/OpenCvSharp.XML
OpenCvSharp-AnyCPU.2.4.10.20141111/OpenCvSharp-AnyCPU.2.4.10.20141111.nupkg
OpenCvSharp-AnyCPU.2.4.10.20141111/tools/init.ps1
OpenCvSharp-AnyCPU.2.4.10.20141111/tools/install.ps1
OpenCvSharp-AnyCPU.2.4.10.20141111/tools/uninstall.ps1
Title.png

참고 자료

없음
다운로드 맨위로