实例介绍
贝叶斯抠图算法,使用mfc实现,直接编译可运行。 运行时先打开原图片和trimap,然后点击菜单中的抠图。
【实例截图】
【核心代码】
BayesianMatting
└── BayesianMatting
├── BayesianMatting
│ ├── BayesianFramework.cpp
│ ├── BayesianFramework.h
│ ├── BayesianMatting.aps
│ ├── BayesianMatting.clw
│ ├── BayesianMatting.cpp
│ ├── BayesianMattingDoc.cpp
│ ├── BayesianMattingDoc.h
│ ├── BayesianMatting.dsp
│ ├── BayesianMatting.dsw
│ ├── BayesianMatting.h
│ ├── BayesianMatting.ncb
│ ├── BayesianMatting.opt
│ ├── BayesianMatting.plg
│ ├── BayesianMatting.rc
│ ├── BayesianMattingView.cpp
│ ├── BayesianMattingView.h
│ ├── ChildFrm.cpp
│ ├── ChildFrm.h
│ ├── Clusters.cpp
│ ├── Clusters.h
│ ├── Debug
│ │ ├── BayesianMatting.bsc
│ │ ├── BayesianMatting.exp
│ │ ├── BayesianMatting.lib
│ │ ├── FastMattingMethod.obj
│ │ └── FastMattingMethod.sbr
│ ├── FastMarchingMethod.cpp
│ ├── FastMarchingMethod.h
│ ├── img
│ │ ├── dog-input.bmp
│ │ ├── dog-trimap.bmp
│ │ ├── girl-input.bmp
│ │ ├── girl-trimap.bmp
│ │ ├── input.bmp
│ │ ├── tower-input.bmp
│ │ ├── tower-trimap.bmp
│ │ ├── trimap.bmp
│ │ ├── woman-input.bmp
│ │ └── woman-trimap.bmp
│ ├── MainFrm.cpp
│ ├── MainFrm.h
│ ├── MatMarchingMethod.cpp
│ ├── MatMarchingMethod.h
│ ├── Matrix.cpp
│ ├── Matrix.h
│ ├── obclusters.h
│ ├── ReadMe.txt
│ ├── res
│ │ ├── BayesianMattingDoc.ico
│ │ ├── BayesianMatting.ico
│ │ ├── BayesianMatting.rc2
│ │ └── Toolbar.bmp
│ ├── resource.h
│ ├── StdAfx.cpp
│ └── StdAfx.h
├── bin
│ ├── demod.exe
│ ├── demod.exp
│ ├── demod.ilk
│ ├── demod.lib
│ ├── demo.exp
│ └── demo.lib
├── CxImage
│ ├── CxImageDLL
│ │ ├── CxImageCrtDll.cpp
│ │ ├── CxImageCrtDll.dsp
│ │ ├── CxImageCrtDll.rc
│ │ ├── CxImageDll.dsw
│ │ ├── CxImageMfcDll.clw
│ │ ├── CxImageMfcDll.cpp
│ │ ├── cximagemfcdll.dsp
│ │ ├── CxImageMfcDll.h
│ │ ├── CxImageMfcDll.rc
│ │ ├── resource.h
│ │ ├── resrc1.h
│ │ ├── StdAfx.cpp
│ │ ├── StdAfx.h
│ │ └── StdCrt.h
│ ├── cximage.dsp
│ ├── cximage.dsw
│ ├── cximage.ncb
│ ├── cximage.opt
│ ├── cximage.plg
│ ├── Debug
│ │ ├── cximage.lib
│ │ ├── tif_xfile.obj
│ │ ├── vc60.idb
│ │ ├── vc60.pdb
│ │ ├── ximabmp.obj
│ │ ├── ximadsp.obj
│ │ ├── ximaenc.obj
│ │ ├── ximaexif.obj
│ │ ├── ximage.obj
│ │ ├── ximagif.obj
│ │ ├── ximahist.obj
│ │ ├── ximaico.obj
│ │ ├── ximainfo.obj
│ │ ├── ximaint.obj
│ │ ├── ximaj2k.obj
│ │ ├── ximajas.obj
│ │ ├── ximajbg.obj
│ │ ├── ximajpg.obj
│ │ ├── ximalpha.obj
│ │ ├── ximalyr.obj
│ │ ├── ximamng.obj
│ │ ├── ximapal.obj
│ │ ├── ximapcx.obj
│ │ ├── ximapng.obj
│ │ ├── ximasel.obj
│ │ ├── ximatga.obj
│ │ ├── ximath.obj
│ │ ├── ximatif.obj
│ │ ├── ximatran.obj
│ │ ├── ximawbmp.obj
│ │ ├── ximawmf.obj
│ │ ├── ximawnd.obj
│ │ └── xmemfile.obj
│ ├── license.txt
│ ├── tif_xfile.cpp
│ ├── xfile.h
│ ├── ximabmp.cpp
│ ├── ximabmp.h
│ ├── ximacfg.h
│ ├── ximadef.h
│ ├── ximadsp.cpp
│ ├── ximaenc.cpp
│ ├── ximaexif.cpp
│ ├── ximage.cpp
│ ├── ximage.h
│ ├── ximagif.cpp
│ ├── ximagif.h
│ ├── ximahist.cpp
│ ├── ximaico.cpp
│ ├── ximaico.h
│ ├── ximainfo.cpp
│ ├── ximaint.cpp
│ ├── ximaiter.h
│ ├── ximaj2k.cpp
│ ├── ximaj2k.h
│ ├── ximajas.cpp
│ ├── ximajas.h
│ ├── ximajbg.cpp
│ ├── ximajbg.h
│ ├── ximajpg.cpp
│ ├── ximajpg.h
│ ├── ximalpha.cpp
│ ├── ximalyr.cpp
│ ├── ximamng.cpp
│ ├── ximamng.h
│ ├── ximapal.cpp
│ ├── ximapcx.cpp
│ ├── ximapcx.h
│ ├── ximapng.cpp
│ ├── ximapng.h
│ ├── ximasel.cpp
│ ├── ximatga.cpp
│ ├── ximatga.h
│ ├── ximath.cpp
│ ├── ximath.h
│ ├── ximatif.cpp
│ ├── ximatif.h
│ ├── ximatran.cpp
│ ├── ximawbmp.cpp
│ ├── ximawbmp.h
│ ├── ximawmf.cpp
│ ├── ximawmf.h
│ ├── ximawnd.cpp
│ ├── xiofile.h
│ ├── xmemfile.cpp
│ └── xmemfile.h
├── CxImgLib.dsw
├── CxImgLib.ncb
├── CxImgLib.opt
├── CxImgLib.suo
├── doc
│ ├── blank.htm
│ ├── cximage_history.htm
│ ├── cximage.htm
│ ├── cximage_libraries.htm
│ ├── cximagelogo.png
│ ├── cximage.png
│ ├── doxy
│ │ └── html
│ │ ├── annotated.html
│ │ ├── class_cx_image.html
│ │ ├── class_cx_image-members.html
│ │ ├── doxygen.css
│ │ ├── doxygen.png
│ │ ├── files.html
│ │ ├── ftv2blank.png
│ │ ├── ftv2doc.png
│ │ ├── ftv2folderclosed.png
│ │ ├── ftv2folderopen.png
│ │ ├── ftv2lastnode.png
│ │ ├── ftv2link.png
│ │ ├── ftv2mlastnode.png
│ │ ├── ftv2mnode.png
│ │ ├── ftv2node.png
│ │ ├── ftv2plastnode.png
│ │ ├── ftv2pnode.png
│ │ ├── ftv2vertline.png
│ │ ├── functions_enum.html
│ │ ├── functions_eval.html
│ │ ├── functions_func.html
│ │ ├── functions.html
│ │ ├── functions_type.html
│ │ ├── functions_vars.html
│ │ ├── globals_defs.html
│ │ ├── globals_enum.html
│ │ ├── globals_eval.html
│ │ ├── globals_func.html
│ │ ├── globals.html
│ │ ├── globals_vars.html
│ │ ├── group___alpha.html
│ │ ├── group___attributes.html
│ │ ├── group___basic_transformations.html
│ │ ├── group___color_space.html
│ │ ├── group___constructors.html
│ │ ├── group___decode.html
│ │ ├── group___d_s_p.html
│ │ ├── group___encode.html
│ │ ├── group___initialization.html
│ │ ├── group___initializzation.html
│ │ ├── group___interpolation.html
│ │ ├── group___kernels.html
│ │ ├── group___layers.html
│ │ ├── group___painting.html
│ │ ├── group___palette.html
│ │ ├── group___pixel.html
│ │ ├── group___protected.html
│ │ ├── group___selection.html
│ │ ├── group___transformations.html
│ │ ├── index.html
│ │ ├── main.html
│ │ ├── modules.html
│ │ ├── struct_cx_image_1_1rgb__color.html
│ │ ├── struct_cx_image_1_1rgb__color-members.html
│ │ ├── struct_cx_image_1_1tag_cx_image_info.html
│ │ ├── struct_cx_image_1_1tag_cx_image_info-members.html
│ │ ├── struct_cx_image_1_1tag_cx_text_info.html
│ │ ├── struct_cx_image_1_1tag_cx_text_info-members.html
│ │ ├── tif__xfile_8cpp.html
│ │ ├── tree.html
│ │ ├── ximabmp_8cpp.html
│ │ ├── ximacfg_8h.html
│ │ ├── ximadef_8h.html
│ │ ├── ximadsp_8cpp.html
│ │ ├── ximaenc_8cpp.html
│ │ ├── ximaexif_8cpp.html
│ │ ├── ximage_8cpp.html
│ │ ├── ximage_8h.html
│ │ ├── ximagif_8cpp.html
│ │ ├── ximahist_8cpp.html
│ │ ├── ximaico_8cpp.html
│ │ ├── ximainfo_8cpp.html
│ │ ├── ximaint_8cpp.html
│ │ ├── ximaj2k_8cpp.html
│ │ ├── ximajas_8cpp.html
│ │ ├── ximajbg_8cpp.html
│ │ ├── ximajpg_8cpp.html
│ │ ├── ximalpha_8cpp.html
│ │ ├── ximalyr_8cpp.html
│ │ ├── ximamng_8cpp.html
│ │ ├── ximapal_8cpp.html
│ │ ├── ximapcx_8cpp.html
│ │ ├── ximapng_8cpp.html
│ │ ├── ximasel_8cpp.html
│ │ ├── ximatga_8cpp.html
│ │ ├── ximath_8cpp.html
│ │ ├── ximatif_8cpp.html
│ │ ├── ximatran_8cpp.html
│ │ ├── ximawbmp_8cpp.html
│ │ ├── ximawmf_8cpp.html
│ │ ├── ximawnd_8cpp.html
│ │ └── xmemfile_8cpp.html
│ ├── doxyfile.txt
│ ├── layers.jpg
│ ├── libjpeg_patches.zip
│ ├── libtiff_patches.zip
│ ├── structure2.png
│ ├── top.htm
│ ├── tree.png
│ └── xdp.css
├── index.htm
├── j2k
│ ├── bio.c
│ ├── bio.h
│ ├── cio.c
│ ├── cio.h
│ ├── Debug
│ │ └── j2k.lib
│ ├── dwt.c
│ ├── dwt.h
│ ├── fix.c
│ ├── fix.h
│ ├── int.c
│ ├── int.h
│ ├── j2k.c
│ ├── j2k.dsp
│ ├── j2k.dsw
│ ├── j2k.h
│ ├── mct.c
│ ├── mct.h
│ ├── mqc.c
│ ├── mqc.h
│ ├── pi.c
│ ├── pi.h
│ ├── Release
│ │ ├── bio.obj
│ │ ├── cio.obj
│ │ ├── dwt.obj
│ │ ├── fix.obj
│ │ ├── int.obj
│ │ ├── j2k.lib
│ │ ├── j2k.obj
│ │ ├── mct.obj
│ │ ├── mqc.obj
│ │ ├── pi.obj
│ │ ├── t1.obj
│ │ ├── t2.obj
│ │ ├── tcd.obj
│ │ ├── tgt.obj
│ │ └── vc60.idb
│ ├── t1.c
│ ├── t1.h
│ ├── t2.c
│ ├── t2.h
│ ├── tcd.c
│ ├── tcd.h
│ ├── tgt.c
│ └── tgt.h
├── jasper
│ ├── base
│ │ ├── jas_cm.c
│ │ ├── jas_debug.c
│ │ ├── jas_getopt.c
│ │ ├── jas_icc.c
│ │ ├── jas_iccdata.c
│ │ ├── jas_image.c
│ │ ├── jas_init.c
│ │ ├── jas_malloc.c
│ │ ├── jas_seq.c
│ │ ├── jas_stream.c
│ │ ├── jas_string.c
│ │ ├── jas_tvp.c
│ │ └── jas_version.c
│ ├── bmp
│ │ ├── bmp_cod.c
│ │ ├── bmp_cod.h
│ │ ├── bmp_dec.c
│ │ ├── bmp_enc.c
│ │ └── bmp_enc.h
│ ├── Debug
│ │ └── jasper.lib
│ ├── include
│ │ └── jasper
│ │ ├── jas_cm.h
│ │ ├── jas_config2.h
│ │ ├── jas_config.h
│ │ ├── jas_config.h.in
│ │ ├── jas_debug.h
│ │ ├── jas_fix.h
│ │ ├── jas_getopt.h
│ │ ├── jas_icc.h
│ │ ├── jas_image.h
│ │ ├── jas_init.h
│ │ ├── jas_malloc.h
│ │ ├── jas_math.h
│ │ ├── jasper.h
│ │ ├── jas_seq.h
│ │ ├── jas_stream.h
│ │ ├── jas_string.h
│ │ ├── jas_tvp.h
│ │ ├── jas_types.h
│ │ ├── jas_version.h
│ │ └── stamp-h.in
│ ├── jasper.dsp
│ ├── jasper.dsw
│ ├── jp2
│ │ ├── jp2_cod.c
│ │ ├── jp2_cod.h
│ │ ├── jp2_dec.c
│ │ ├── jp2_dec.h
│ │ └── jp2_enc.c
│ ├── jpc
│ │ ├── jpc_bs.c
│ │ ├── jpc_bs.h
│ │ ├── jpc_cod.h
│ │ ├── jpc_cs.c
│ │ ├── jpc_cs.h
│ │ ├── jpc_dec.c
│ │ ├── jpc_dec.h
│ │ ├── jpc_enc.c
│ │ ├── jpc_enc.h
│ │ ├── jpc_fix.h
│ │ ├── jpc_flt.h
│ │ ├── jpc_math.c
│ │ ├── jpc_math.h
│ │ ├── jpc_mct.c
│ │ ├── jpc_mct.h
│ │ ├── jpc_mqcod.c
│ │ ├── jpc_mqcod.h
│ │ ├── jpc_mqdec.c
│ │ ├── jpc_mqdec.h
│ │ ├── jpc_mqenc.c
│ │ ├── jpc_mqenc.h
│ │ ├── jpc_qmfb.c
│ │ ├── jpc_qmfb.h
│ │ ├── jpc_t1cod.c
│ │ ├── jpc_t1cod.h
│ │ ├── jpc_t1dec.c
│ │ ├── jpc_t1dec.h
│ │ ├── jpc_t1enc.c
│ │ ├── jpc_t1enc.h
│ │ ├── jpc_t2cod.c
│ │ ├── jpc_t2cod.h
│ │ ├── jpc_t2dec.c
│ │ ├── jpc_t2dec.h
│ │ ├── jpc_t2enc.c
│ │ ├── jpc_t2enc.h
│ │ ├── jpc_tagtree.c
│ │ ├── jpc_tagtree.h
│ │ ├── jpc_tsfb.c
│ │ ├── jpc_tsfb.h
│ │ ├── jpc_util.c
│ │ └── jpc_util.h
│ ├── jpg
│ │ ├── jpg_cod.h
│ │ ├── jpg_dec.c
│ │ ├── jpg_dummy.c
│ │ ├── jpg_enc.c
│ │ ├── jpg_enc.h
│ │ ├── jpg_jpeglib.h
│ │ ├── jpg_val.c
│ │ └── README
│ ├── LICENSE
│ ├── mif
│ │ ├── mif_cod.c
│ │ ├── mif_cod.h
│ │ └── README
│ ├── pgx
│ │ ├── pgx_cod.c
│ │ ├── pgx_cod.h
│ │ ├── pgx_dec.c
│ │ ├── pgx_enc.c
│ │ └── pgx_enc.h
│ ├── pnm
│ │ ├── pnm_cod.c
│ │ ├── pnm_cod.h
│ │ ├── pnm_dec.c
│ │ ├── pnm_enc.c
│ │ └── pnm_enc.h
│ └── ras
│ ├── ras_cod.c
│ ├── ras_cod.h
│ ├── ras_dec.c
│ ├── ras_enc.c
│ └── ras_enc.h
├── jbig
│ ├── copying.txt
│ ├── Debug
│ │ └── jbig.lib
│ ├── jbig.c
│ ├── jbig.doc
│ ├── jbig.dsp
│ ├── jbig.dsw
│ ├── jbig.h
│ ├── jbig_tab.c
│ ├── Makefile
│ ├── patents.htm
│ ├── Release
│ │ ├── jbig.lib
│ │ ├── jbig.obj
│ │ ├── jbig.pch
│ │ ├── jbig_tab.obj
│ │ └── vc60.idb
│ └── tstcodec.c
├── jpeg
│ ├── change.log
│ ├── Debug
│ │ └── Jpeg.lib
│ ├── filelist.txt
│ ├── jcapimin.c
│ ├── jcapistd.c
│ ├── jccoefct.c
│ ├── jccolor.c
│ ├── jcdctmgr.c
│ ├── jchuff.c
│ ├── jchuff.h
│ ├── jcinit.c
│ ├── jcmainct.c
│ ├── jcmarker.c
│ ├── jcmaster.c
│ ├── jcomapi.c
│ ├── jconfig.h
│ ├── jcparam.c
│ ├── jcphuff.c
│ ├── jcprepct.c
│ ├── jcsample.c
│ ├── jctrans.c
│ ├── jdapimin.c
│ ├── jdapistd.c
│ ├── jdatadst.c
│ ├── jdatasrc.c
│ ├── jdcoefct.c
│ ├── jdcolor.c
│ ├── jdct.h
│ ├── jddctmgr.c
│ ├── jdhuff.c
│ ├── jdhuff.h
│ ├── jdinput.c
│ ├── jdmainct.c
│ ├── jdmarker.c
│ ├── jdmaster.c
│ ├── jdmerge.c
│ ├── jdphuff.c
│ ├── jdpostct.c
│ ├── jdsample.c
│ ├── jdtrans.c
│ ├── jerror.c
│ ├── jerror.h
│ ├── jfdctflt.c
│ ├── jfdctfst.c
│ ├── jfdctint.c
│ ├── jidctflt.c
│ ├── jidctfst.c
│ ├── jidctint.c
│ ├── jidctred.c
│ ├── jinclude.h
│ ├── jmemmgr.c
│ ├── jmemnobs.c
│ ├── jmemsys.h
│ ├── jmorecfg.h
│ ├── Jpeg.dsp
│ ├── Jpeg.dsw
│ ├── jpegint.h
│ ├── jpeglib.h
│ ├── jquant1.c
│ ├── jquant2.c
│ ├── jutils.c
│ ├── jversion.h
│ └── Readme.txt
├── png
│ ├── ANNOUNCE
│ ├── CHANGES
│ ├── configure
│ ├── Debug
│ │ └── png.lib
│ ├── INSTALL
│ ├── KNOWNBUG
│ ├── libpng.txt
│ ├── LICENSE
│ ├── png.c
│ ├── pngconf.h
│ ├── png.dsp
│ ├── png.dsw
│ ├── pngerror.c
│ ├── pnggccrd.c
│ ├── pngget.c
│ ├── png.h
│ ├── pngmem.c
│ ├── pngpread.c
│ ├── pngread.c
│ ├── pngrio.c
│ ├── pngrtran.c
│ ├── pngrutil.c
│ ├── pngset.c
│ ├── pngtrans.c
│ ├── pngvcrd.c
│ ├── pngwio.c
│ ├── pngwrite.c
│ ├── pngwtran.c
│ ├── pngwutil.c
│ ├── README
│ ├── TODO
│ └── Y2KINFO
├── tiff
│ ├── Debug
│ │ └── Tiff.lib
│ ├── fax3sm_winnt.c
│ ├── libtiff.def
│ ├── t4.h
│ ├── tif_aux.c
│ ├── tif_close.c
│ ├── tif_codec.c
│ ├── tif_compress.c
│ ├── tif_dir.c
│ ├── tif_dir.h
│ ├── tif_dirinfo.c
│ ├── tif_dirread.c
│ ├── tif_dirwrite.c
│ ├── tif_dumpmode.c
│ ├── tif_error.c
│ ├── tif_fax3.c
│ ├── tif_fax3.h
│ ├── tiffcomp.h
│ ├── tiffconf.h
│ ├── Tiff.dsp
│ ├── Tiff.dsw
│ ├── tiff.h
│ ├── tiffio.h
│ ├── tiffiop.h
│ ├── tif_flush.c
│ ├── tif_getimage.c
│ ├── tif_jpeg.c
│ ├── tif_luv.c
│ ├── tif_lzw.c
│ ├── tif_next.c
│ ├── tif_ojpeg.c
│ ├── tif_open.c
│ ├── tif_packbits.c
│ ├── tif_pixarlog.c
│ ├── tif_predict.c
│ ├── tif_predict.h
│ ├── tif_print.c
│ ├── tif_read.c
│ ├── tif_strip.c
│ ├── tif_swab.c
│ ├── tif_thunder.c
│ ├── tif_tile.c
│ ├── tif_version.c
│ ├── tif_warning.c
│ ├── tif_write.c
│ ├── tif_zip.c
│ └── uvcode.h
└── zlib
├── adler32.c
├── algorithm.txt
├── ChangeLog
├── compress.c
├── crc32.c
├── crc32.h
├── Debug
│ └── zlib.lib
├── deflate.c
├── deflate.h
├── FAQ
├── gzio.c
├── infback.c
├── inffast.c
├── inffast.h
├── inffixed.h
├── inflate.c
├── inflate.h
├── inftrees.c
├── inftrees.h
├── README
├── trees.c
├── trees.h
├── uncompr.c
├── zconf.h
├── zconf.in.h
├── ZLIB.DEF
├── zlib.dsp
├── zlib.dsw
├── zlib.h
├── zlib.mak
├── ZLIB.RC
├── zutil.c
└── zutil.h
39 directories, 623 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论