├── .gitignore ├── files └── ia32 │ ├── cxcore100.dll │ ├── highgui.lib │ ├── highgui100.dll │ └── libguide40.dll ├── opencv.gyp └── opencv ├── cv ├── include │ ├── cv.h │ ├── cv.hpp │ ├── cvcompat.h │ ├── cvstreams.h │ └── cvtypes.h └── src │ ├── _cv.h │ ├── _cvgeom.h │ ├── _cvimgproc.h │ ├── _cvipp.h │ ├── _cvlist.h │ ├── _cvmatrix.h │ ├── cvaccum.cpp │ ├── cvadapthresh.cpp │ ├── cvapprox.cpp │ ├── cvcalccontrasthistogram.cpp │ ├── cvcalcimagehomography.cpp │ ├── cvcalibinit.cpp │ ├── cvcalibration.cpp │ ├── cvcamshift.cpp │ ├── cvcanny.cpp │ ├── cvcolor.cpp │ ├── cvcondens.cpp │ ├── cvcontours.cpp │ ├── cvcontourtree.cpp │ ├── cvconvhull.cpp │ ├── cvconvolve.cpp │ ├── cvcorner.cpp │ ├── cvcornersubpix.cpp │ ├── cvderiv.cpp │ ├── cvdistransform.cpp │ ├── cvdominants.cpp │ ├── cvemd.cpp │ ├── cvfeatureselect.cpp │ ├── cvfilter.cpp │ ├── cvfloodfill.cpp │ ├── cvfundam.cpp │ ├── cvgeometry.cpp │ ├── cvhaar.cpp │ ├── cvhistogram.cpp │ ├── cvhough.cpp │ ├── cvimgwarp.cpp │ ├── cvinpaint.cpp │ ├── cvkalman.cpp │ ├── cvlinefit.cpp │ ├── cvlkpyramid.cpp │ ├── cvmatchcontours.cpp │ ├── cvmoments.cpp │ ├── cvmorph.cpp │ ├── cvmotempl.cpp │ ├── cvoptflowbm.cpp │ ├── cvoptflowhs.cpp │ ├── cvoptflowlk.cpp │ ├── cvpgh.cpp │ ├── cvposit.cpp │ ├── cvprecomp.cpp │ ├── cvpyramids.cpp │ ├── cvpyrsegmentation.cpp │ ├── cvrotcalipers.cpp │ ├── cvsamplers.cpp │ ├── cvsegmentation.cpp │ ├── cvshapedescr.cpp │ ├── cvsmooth.cpp │ ├── cvsnakes.cpp │ ├── cvsubdivision2d.cpp │ ├── cvsumpixels.cpp │ ├── cvswitcher.cpp │ ├── cvtables.cpp │ ├── cvtemplmatch.cpp │ ├── cvthresh.cpp │ ├── cvundistort.cpp │ ├── cvutils.cpp │ └── dummy.cpp ├── cxcore ├── include │ ├── cvver.h │ ├── cxcore.h │ ├── cxcore.hpp │ ├── cxerror.h │ ├── cxmisc.h │ └── cxtypes.h └── src │ ├── _cxcore.h │ ├── _cxipp.h │ ├── cxalloc.cpp │ ├── cxarithm.cpp │ ├── cxarray.cpp │ ├── cxcmp.cpp │ ├── cxconvert.cpp │ ├── cxcopy.cpp │ ├── cxdatastructs.cpp │ ├── cxdrawing.cpp │ ├── cxdxt.cpp │ ├── cxerror.cpp │ ├── cximage.cpp │ ├── cxjacobieigens.cpp │ ├── cxlogic.cpp │ ├── cxlut.cpp │ ├── cxmathfuncs.cpp │ ├── cxmatmul.cpp │ ├── cxmatrix.cpp │ ├── cxmean.cpp │ ├── cxmeansdv.cpp │ ├── cxminmaxloc.cpp │ ├── cxnorm.cpp │ ├── cxouttext.cpp │ ├── cxpersistence.cpp │ ├── cxprecomp.cpp │ ├── cxrand.cpp │ ├── cxsumpixels.cpp │ ├── cxsvd.cpp │ ├── cxswitcher.cpp │ ├── cxtables.cpp │ ├── cxutils.cpp │ └── dummy.cpp ├── highgui ├── include │ ├── cxvideocap.hpp │ └── highgui.h └── lib │ └── 0_Warning.txt ├── include ├── opencv │ ├── cv.h │ ├── cv.hpp │ ├── cvaux.h │ ├── cvaux.hpp │ ├── cvcompat.h │ ├── cvtypes.h │ ├── cvver.h │ ├── cvvidsurv.hpp │ ├── cvwimage.h │ ├── cxcore.h │ ├── cxcore.hpp │ ├── cxerror.h │ ├── cxflann.h │ ├── cxmat.hpp │ ├── cxmisc.h │ ├── cxoperations.hpp │ ├── cxtypes.h │ ├── cxvideocap.hpp │ ├── highgui.h │ ├── highgui.hpp │ └── ml.h └── opencv2 │ ├── calib3d │ └── calib3d.hpp │ ├── contrib │ ├── contrib.hpp │ ├── detection_based_tracker.hpp │ ├── hybridtracker.hpp │ ├── openfabmap.hpp │ └── retina.hpp │ ├── core │ ├── core.hpp │ ├── core_c.h │ ├── cuda_devptrs.hpp │ ├── devmem2d.hpp │ ├── eigen.hpp │ ├── gpumat.hpp │ ├── internal.hpp │ ├── mat.hpp │ ├── opengl_interop.hpp │ ├── operations.hpp │ ├── types_c.h │ ├── version.hpp │ └── wimage.hpp │ ├── cvconfig.h │ ├── features2d │ └── features2d.hpp │ ├── flann │ ├── all_indices.h │ ├── allocator.h │ ├── any.h │ ├── autotuned_index.h │ ├── composite_index.h │ ├── config.h │ ├── defines.h │ ├── dist.h │ ├── dummy.h │ ├── dynamic_bitset.h │ ├── flann.hpp │ ├── flann_base.hpp │ ├── general.h │ ├── ground_truth.h │ ├── hdf5.h │ ├── heap.h │ ├── hierarchical_clustering_index.h │ ├── index_testing.h │ ├── kdtree_index.h │ ├── kdtree_single_index.h │ ├── kmeans_index.h │ ├── linear_index.h │ ├── logger.h │ ├── lsh_index.h │ ├── lsh_table.h │ ├── matrix.h │ ├── miniflann.hpp │ ├── nn_index.h │ ├── object_factory.h │ ├── params.h │ ├── random.h │ ├── result_set.h │ ├── sampling.h │ ├── saving.h │ ├── simplex_downhill.h │ └── timer.h │ ├── gpu │ ├── device │ │ ├── border_interpolate.hpp │ │ ├── color.hpp │ │ ├── common.hpp │ │ ├── datamov_utils.hpp │ │ ├── detail │ │ │ ├── color_detail.hpp │ │ │ ├── reduction_detail.hpp │ │ │ ├── transform_detail.hpp │ │ │ ├── type_traits_detail.hpp │ │ │ └── vec_distance_detail.hpp │ │ ├── dynamic_smem.hpp │ │ ├── emulation.hpp │ │ ├── filters.hpp │ │ ├── funcattrib.hpp │ │ ├── functional.hpp │ │ ├── limits.hpp │ │ ├── saturate_cast.hpp │ │ ├── scan.hpp │ │ ├── static_check.hpp │ │ ├── transform.hpp │ │ ├── type_traits.hpp │ │ ├── utility.hpp │ │ ├── vec_distance.hpp │ │ ├── vec_math.hpp │ │ ├── vec_traits.hpp │ │ ├── warp.hpp │ │ └── warp_reduce.hpp │ ├── devmem2d.hpp │ ├── gpu.hpp │ ├── gpumat.hpp │ └── stream_accessor.hpp │ ├── highgui │ ├── cap_ios.h │ ├── highgui.hpp │ └── highgui_c.h │ ├── imgproc │ ├── imgproc.hpp │ ├── imgproc_c.h │ └── types_c.h │ ├── legacy │ ├── blobtrack.hpp │ ├── compat.hpp │ ├── legacy.hpp │ └── streams.hpp │ ├── ml │ └── ml.hpp │ ├── nonfree │ ├── features2d.hpp │ └── nonfree.hpp │ ├── objdetect │ └── objdetect.hpp │ ├── ocl │ ├── matrix_operations.hpp │ └── ocl.hpp │ ├── opencv.hpp │ ├── opencv_modules.hpp │ ├── photo │ ├── photo.hpp │ └── photo_c.h │ ├── stitching │ ├── detail │ │ ├── autocalib.hpp │ │ ├── blenders.hpp │ │ ├── camera.hpp │ │ ├── exposure_compensate.hpp │ │ ├── matchers.hpp │ │ ├── motion_estimators.hpp │ │ ├── seam_finders.hpp │ │ ├── util.hpp │ │ ├── util_inl.hpp │ │ ├── warpers.hpp │ │ └── warpers_inl.hpp │ ├── stitcher.hpp │ └── warpers.hpp │ ├── ts │ ├── ts.hpp │ ├── ts_gtest.h │ └── ts_perf.hpp │ ├── video │ ├── background_segm.hpp │ ├── tracking.hpp │ └── video.hpp │ ├── videostab │ ├── deblurring.hpp │ ├── fast_marching.hpp │ ├── fast_marching_inl.hpp │ ├── frame_source.hpp │ ├── global_motion.hpp │ ├── inpainting.hpp │ ├── log.hpp │ ├── motion_stabilizing.hpp │ ├── optical_flow.hpp │ ├── stabilizer.hpp │ └── videostab.hpp │ └── world │ └── world.hpp ├── ml ├── include │ └── ml.h └── src │ ├── _ml.h │ ├── dummy.cpp │ ├── ml.cpp │ ├── ml_inner_functions.cpp │ ├── mlann_mlp.cpp │ ├── mlboost.cpp │ ├── mlcnn.cpp │ ├── mlem.cpp │ ├── mlestimate.cpp │ ├── mlknearest.cpp │ ├── mlnbayes.cpp │ ├── mlrtrees.cpp │ ├── mlsvm.cpp │ ├── mltestset.cpp │ └── mltree.cpp └── src ├── opencv ├── cv │ ├── _cv.h │ ├── _cvgeom.h │ ├── _cvimgproc.h │ ├── _cvipp.h │ ├── _cvlist.h │ ├── _cvmatrix.h │ ├── cvaccum.cpp │ ├── cvadapthresh.cpp │ ├── cvapprox.cpp │ ├── cvcalccontrasthistogram.cpp │ ├── cvcalcimagehomography.cpp │ ├── cvcalibinit.cpp │ ├── cvcalibration.cpp │ ├── cvcamshift.cpp │ ├── cvcanny.cpp │ ├── cvcolor.cpp │ ├── cvcondens.cpp │ ├── cvcontours.cpp │ ├── cvcontourtree.cpp │ ├── cvconvhull.cpp │ ├── cvconvolve.cpp │ ├── cvcorner.cpp │ ├── cvcornersubpix.cpp │ ├── cvderiv.cpp │ ├── cvdistransform.cpp │ ├── cvdominants.cpp │ ├── cvemd.cpp │ ├── cvfeatureselect.cpp │ ├── cvfilter.cpp │ ├── cvfloodfill.cpp │ ├── cvfundam.cpp │ ├── cvgeometry.cpp │ ├── cvhaar.cpp │ ├── cvhistogram.cpp │ ├── cvhough.cpp │ ├── cvimgwarp.cpp │ ├── cvinpaint.cpp │ ├── cvkalman.cpp │ ├── cvlinefit.cpp │ ├── cvlkpyramid.cpp │ ├── cvmatchcontours.cpp │ ├── cvmoments.cpp │ ├── cvmorph.cpp │ ├── cvmotempl.cpp │ ├── cvoptflowbm.cpp │ ├── cvoptflowhs.cpp │ ├── cvoptflowlk.cpp │ ├── cvpgh.cpp │ ├── cvposit.cpp │ ├── cvprecomp.cpp │ ├── cvpyramids.cpp │ ├── cvpyrsegmentation.cpp │ ├── cvrotcalipers.cpp │ ├── cvsamplers.cpp │ ├── cvsegmentation.cpp │ ├── cvshapedescr.cpp │ ├── cvsmooth.cpp │ ├── cvsnakes.cpp │ ├── cvsubdivision2d.cpp │ ├── cvsumpixels.cpp │ ├── cvswitcher.cpp │ ├── cvtables.cpp │ ├── cvtemplmatch.cpp │ ├── cvthresh.cpp │ ├── cvundistort.cpp │ ├── cvutils.cpp │ └── dummy.cpp ├── cxcore │ ├── _cxcore.h │ ├── _cxipp.h │ ├── cxalloc.cpp │ ├── cxarithm.cpp │ ├── cxarray.cpp │ ├── cxcmp.cpp │ ├── cxconvert.cpp │ ├── cxcopy.cpp │ ├── cxdatastructs.cpp │ ├── cxdrawing.cpp │ ├── cxdxt.cpp │ ├── cxerror.cpp │ ├── cximage.cpp │ ├── cxjacobieigens.cpp │ ├── cxlogic.cpp │ ├── cxlut.cpp │ ├── cxmathfuncs.cpp │ ├── cxmatmul.cpp │ ├── cxmatrix.cpp │ ├── cxmean.cpp │ ├── cxmeansdv.cpp │ ├── cxminmaxloc.cpp │ ├── cxnorm.cpp │ ├── cxouttext.cpp │ ├── cxpersistence.cpp │ ├── cxprecomp.cpp │ ├── cxrand.cpp │ ├── cxsumpixels.cpp │ ├── cxsvd.cpp │ ├── cxswitcher.cpp │ ├── cxtables.cpp │ ├── cxutils.cpp │ └── dummy.cpp └── highgui │ ├── 1_Warning.txt │ ├── CMakeLists.txt │ ├── _highgui.h │ ├── bitstrm.cpp │ ├── bitstrm.h │ ├── cvcap.cpp │ ├── cvcap_cmu.cpp │ ├── cvcap_dc1394.cpp │ ├── cvcap_dc1394_v2.cpp │ ├── cvcap_dshow.cpp │ ├── cvcap_ffmpeg.cpp │ ├── cvcap_gstreamer.cpp │ ├── cvcap_images.cpp │ ├── cvcap_libv4l.cpp │ ├── cvcap_mil.cpp │ ├── cvcap_qt.cpp │ ├── cvcap_tyzx.cpp │ ├── cvcap_unicap.cpp │ ├── cvcap_v4l.cpp │ ├── cvcap_vfw.cpp │ ├── cvcap_w32.cpp │ ├── cvcap_xine.cpp │ ├── grfmt_base.cpp │ ├── grfmt_base.h │ ├── grfmt_bmp.cpp │ ├── grfmt_bmp.h │ ├── grfmt_exr.cpp │ ├── grfmt_exr.h │ ├── grfmt_imageio.cpp │ ├── grfmt_imageio.h │ ├── grfmt_jpeg.cpp │ ├── grfmt_jpeg.h │ ├── grfmt_jpeg2000.cpp │ ├── grfmt_jpeg2000.h │ ├── grfmt_png.cpp │ ├── grfmt_png.h │ ├── grfmt_pxm.cpp │ ├── grfmt_pxm.h │ ├── grfmt_sunras.cpp │ ├── grfmt_sunras.h │ ├── grfmt_tiff.cpp │ ├── grfmt_tiff.h │ ├── grfmts.h │ ├── gstappsink.cpp │ ├── gstappsink.h │ ├── image.cpp │ ├── loadsave.cpp │ ├── precomp.cpp │ ├── utils.cpp │ ├── utils.h │ ├── window.cpp │ ├── window_carbon.cpp │ ├── window_gtk.cpp │ └── window_w32.cpp └── opencv2 ├── calib3d ├── _modelest.h ├── calibinit.cpp ├── calibration.cpp ├── checkchessboard.cpp ├── circlesgrid.cpp ├── circlesgrid.hpp ├── epnp.cpp ├── epnp.h ├── fundam.cpp ├── modelest.cpp ├── p3p.cpp ├── p3p.h ├── polynom_solver.cpp ├── polynom_solver.h ├── posit.cpp ├── precomp.hpp ├── quadsubpix.cpp ├── solvepnp.cpp ├── stereobm.cpp ├── stereosgbm.cpp └── triangulate.cpp ├── core ├── algorithm.cpp ├── alloc.cpp ├── arithm.cpp ├── array.cpp ├── cmdparser.cpp ├── convert.cpp ├── copy.cpp ├── cuda │ └── matrix_operations.cu ├── datastructs.cpp ├── drawing.cpp ├── dxt.cpp ├── gpumat.cpp ├── lapack.cpp ├── mathfuncs.cpp ├── matmul.cpp ├── matop.cpp ├── matrix.cpp ├── opengl_interop.cpp ├── out.cpp ├── parallel.cpp ├── persistence.cpp ├── precomp.cpp ├── precomp.hpp ├── rand.cpp ├── stat.cpp ├── system.cpp └── tables.cpp ├── features2d ├── bagofwords.cpp ├── blobdetector.cpp ├── brief.cpp ├── brisk.cpp ├── descriptors.cpp ├── detectors.cpp ├── draw.cpp ├── dynamic.cpp ├── evaluation.cpp ├── fast.cpp ├── fast_score.cpp ├── fast_score.hpp ├── features2d_init.cpp ├── freak.cpp ├── generated_16.i ├── generated_32.i ├── generated_64.i ├── keypoint.cpp ├── matchers.cpp ├── mser.cpp ├── orb.cpp ├── precomp.hpp └── stardetector.cpp ├── flann ├── flann.cpp ├── miniflann.cpp └── precomp.hpp ├── highgui ├── bitstrm.cpp ├── bitstrm.hpp ├── cap.cpp ├── cap_android.cpp ├── cap_avfoundation.mm ├── cap_cmu.cpp ├── cap_dc1394.cpp ├── cap_dc1394_v2.cpp ├── cap_dshow.cpp ├── cap_ffmpeg.cpp ├── cap_ffmpeg_api.hpp ├── cap_ffmpeg_impl.hpp ├── cap_gstreamer.cpp ├── cap_images.cpp ├── cap_ios_abstract_camera.mm ├── cap_ios_photo_camera.mm ├── cap_ios_video_camera.mm ├── cap_libv4l.cpp ├── cap_mil.cpp ├── cap_openni.cpp ├── cap_pvapi.cpp ├── cap_qt.cpp ├── cap_qtkit.mm ├── cap_tyzx.cpp ├── cap_unicap.cpp ├── cap_v4l.cpp ├── cap_vfw.cpp ├── cap_ximea.cpp ├── cap_xine.cpp ├── ffmpeg_codecs.hpp ├── grfmt_base.cpp ├── grfmt_base.hpp ├── grfmt_bmp.cpp ├── grfmt_bmp.hpp ├── grfmt_exr.cpp ├── grfmt_exr.hpp ├── grfmt_imageio.cpp ├── grfmt_imageio.hpp ├── grfmt_jpeg.cpp ├── grfmt_jpeg.hpp ├── grfmt_jpeg2000.cpp ├── grfmt_jpeg2000.hpp ├── grfmt_png.cpp ├── grfmt_png.hpp ├── grfmt_pxm.cpp ├── grfmt_pxm.hpp ├── grfmt_sunras.cpp ├── grfmt_sunras.hpp ├── grfmt_tiff.cpp ├── grfmt_tiff.hpp ├── grfmts.hpp ├── loadsave.cpp ├── precomp.cpp ├── precomp.hpp ├── utils.cpp ├── utils.hpp ├── window.cpp ├── window_QT.qrc └── window_cocoa.mm ├── imgproc ├── _geom.h ├── _list.h ├── accum.cpp ├── approx.cpp ├── canny.cpp ├── color.cpp ├── contours.cpp ├── convhull.cpp ├── corner.cpp ├── cornersubpix.cpp ├── deriv.cpp ├── distransform.cpp ├── emd.cpp ├── featureselect.cpp ├── filter.cpp ├── floodfill.cpp ├── gabor.cpp ├── gcgraph.hpp ├── generalized_hough.cpp ├── geometry.cpp ├── grabcut.cpp ├── histogram.cpp ├── hough.cpp ├── imgwarp.cpp ├── linefit.cpp ├── matchcontours.cpp ├── moments.cpp ├── morph.cpp ├── phasecorr.cpp ├── precomp.hpp ├── pyramids.cpp ├── rotcalipers.cpp ├── samplers.cpp ├── segmentation.cpp ├── shapedescr.cpp ├── smooth.cpp ├── subdivision2d.cpp ├── sumpixels.cpp ├── tables1.cpp ├── templmatch.cpp ├── thresh.cpp ├── undistort.cpp └── utils.cpp ├── legacy ├── 3dtracker.cpp ├── _facedetection.h ├── _featuretree.h ├── _kdtree.hpp ├── _matrix.h ├── _vectrack.h ├── _vm.h ├── auxutils.cpp ├── blobtrack.cpp ├── blobtrackanalysis.cpp ├── blobtrackanalysishist.cpp ├── blobtrackanalysisior.cpp ├── blobtrackanalysistrackdist.cpp ├── blobtrackgen1.cpp ├── blobtrackgenyml.cpp ├── blobtrackingauto.cpp ├── blobtrackingcc.cpp ├── blobtrackingccwithcr.cpp ├── blobtrackinglist.cpp ├── blobtrackingmsfg.cpp ├── blobtrackingmsfgs.cpp ├── blobtrackpostprockalman.cpp ├── blobtrackpostproclinear.cpp ├── blobtrackpostproclist.cpp ├── calcimagehomography.cpp ├── calibfilter.cpp ├── calonder.cpp ├── camshift.cpp ├── clique.cpp ├── compat.cpp ├── condens.cpp ├── contourtree.cpp ├── correspond.cpp ├── corrimages.cpp ├── createhandmask.cpp ├── decomppoly.cpp ├── dominants.cpp ├── dpstereo.cpp ├── eigenobjects.cpp ├── enmin.cpp ├── enteringblobdetection.cpp ├── enteringblobdetectionreal.cpp ├── epilines.cpp ├── extendededges.cpp ├── face.cpp ├── face.h ├── facedetection.cpp ├── facedetection.h ├── facetemplate.cpp ├── facetemplate.h ├── features2d.cpp ├── featuretree.cpp ├── findface.cpp ├── findhandregion.cpp ├── hmm.cpp ├── hmm1d.cpp ├── hmmobs.cpp ├── image.cpp ├── kdtree.cpp ├── lcm.cpp ├── lee.cpp ├── levmar.cpp ├── levmarprojbandle.cpp ├── levmartrif.cpp ├── lines.cpp ├── lmeds.cpp ├── lsh.cpp ├── morphcontours.cpp ├── morphing.cpp ├── oneway.cpp ├── optflowbm.cpp ├── optflowhs.cpp ├── optflowlk.cpp ├── pgh.cpp ├── planardetect.cpp ├── precomp.hpp ├── prewarp.cpp ├── pyrsegmentation.cpp ├── scanlines.cpp ├── segment.cpp ├── snakes.cpp ├── spilltree.cpp ├── stereogc.cpp ├── subdiv2.cpp ├── testseq.cpp ├── texture.cpp ├── trifocal.cpp ├── vecfacetracking.cpp └── video.cpp ├── ml ├── ann_mlp.cpp ├── boost.cpp ├── cnn.cpp ├── data.cpp ├── ertrees.cpp ├── estimate.cpp ├── gbt.cpp ├── inner_functions.cpp ├── knearest.cpp ├── nbayes.cpp ├── precomp.hpp ├── rtrees.cpp ├── svm.cpp ├── testset.cpp └── tree.cpp ├── objdetect ├── _latentsvm.h ├── _lsvm_distancetransform.h ├── _lsvm_error.h ├── _lsvm_fft.h ├── _lsvm_matching.h ├── _lsvm_resizeimg.h ├── _lsvm_routine.h ├── _lsvm_tbbversion.h ├── _lsvm_types.h ├── _lsvmparser.h ├── cascadedetect.cpp ├── cascadedetect.hpp ├── datamatrix.cpp ├── distancetransform.cpp ├── featurepyramid.cpp ├── fft.cpp ├── haar.cpp ├── hog.cpp ├── latentsvm.cpp ├── latentsvmdetector.cpp ├── linemod.cpp ├── lsvmtbbversion.cpp ├── matching.cpp ├── normal_lut.i ├── objdetect_init.cpp ├── precomp.hpp ├── resizeimg.cpp └── routine.cpp └── video ├── camshift.cpp ├── kalman.cpp ├── lkpyramid.cpp ├── lkpyramid.hpp ├── motempl.cpp ├── optflowgf.cpp ├── precomp.hpp ├── simpleflow.cpp └── simpleflow.hpp /.gitignore: -------------------------------------------------------------------------------- 1 | *.sln 2 | *.vcproj 3 | *.user 4 | 5 | Debug/ 6 | Release/ 7 | -------------------------------------------------------------------------------- /files/ia32/cxcore100.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cybertk/opencv/4e9e6d1300aa3603bcc74a133a2844a1237437fa/files/ia32/cxcore100.dll -------------------------------------------------------------------------------- /files/ia32/highgui.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cybertk/opencv/4e9e6d1300aa3603bcc74a133a2844a1237437fa/files/ia32/highgui.lib -------------------------------------------------------------------------------- /files/ia32/highgui100.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cybertk/opencv/4e9e6d1300aa3603bcc74a133a2844a1237437fa/files/ia32/highgui100.dll -------------------------------------------------------------------------------- /files/ia32/libguide40.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cybertk/opencv/4e9e6d1300aa3603bcc74a133a2844a1237437fa/files/ia32/libguide40.dll -------------------------------------------------------------------------------- /opencv/cv/include/cvcompat.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cybertk/opencv/4e9e6d1300aa3603bcc74a133a2844a1237437fa/opencv/cv/include/cvcompat.h -------------------------------------------------------------------------------- /opencv/cv/src/cvconvolve.cpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #include "_cv.h" 43 | 44 | /* End of file. */ 45 | -------------------------------------------------------------------------------- /opencv/cv/src/cvprecomp.cpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #include "_cv.h" 43 | 44 | /* End of file. */ 45 | -------------------------------------------------------------------------------- /opencv/cv/src/cvswitcher.cpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #include "_cv.h" 43 | 44 | #undef IPCVAPI_EX 45 | #define IPCVAPI_EX(type,func_name,names,modules,arg) \ 46 | { (void**)&func_name##_p, (void*)(size_t)-1, names, modules, 0 }, 47 | 48 | static CvPluginFuncInfo cv_ipp_tab[] = 49 | { 50 | #undef _CV_IPP_H_ 51 | #include "_cvipp.h" 52 | #undef _CV_IPP_H_ 53 | {0, 0, 0, 0, 0} 54 | }; 55 | 56 | static CvModuleInfo cv_info = { 0, "cv", CV_VERSION, cv_ipp_tab }; 57 | CvModule cv_module( &cv_info ); 58 | 59 | /* End of file. */ 60 | -------------------------------------------------------------------------------- /opencv/cv/src/dummy.cpp: -------------------------------------------------------------------------------- 1 | // this file is empty but needed for libtool 2 | -------------------------------------------------------------------------------- /opencv/cxcore/include/cvver.h: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright( C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | //(including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort(including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | /* 43 | definition of the current version of OpenCV 44 | Usefull to test in user programs 45 | */ 46 | 47 | #ifndef _CVVERSION_H_ 48 | #define _CVVERSION_H_ 49 | 50 | #define CV_MAJOR_VERSION 1 51 | #define CV_MINOR_VERSION 0 52 | #define CV_SUBMINOR_VERSION 0 53 | #define CV_VERSION "1.0.0" 54 | 55 | #endif /*_CVVERSION_H_*/ 56 | -------------------------------------------------------------------------------- /opencv/cxcore/src/cxprecomp.cpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #include "_cxcore.h" 43 | 44 | /* End of file. */ 45 | -------------------------------------------------------------------------------- /opencv/cxcore/src/dummy.cpp: -------------------------------------------------------------------------------- 1 | // this file is empty but needed for libtool 2 | -------------------------------------------------------------------------------- /opencv/highgui/lib/0_Warning.txt: -------------------------------------------------------------------------------- 1 | 2 | BLOCKED FILE ALERTA file has been blocked due to the 'Intel Email File Filtering Policy' rule.Context: 'highgui.lib'Disallowed due to Ticket Number: '6bcc-50d0-0d03-0001' 3 | See your system administrator for further information. Copyright 1999-2007 McAfee, Inc.All Rights Reserved.http://www.mcafee.com -------------------------------------------------------------------------------- /opencv/include/opencv/cvcompat.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cybertk/opencv/4e9e6d1300aa3603bcc74a133a2844a1237437fa/opencv/include/opencv/cvcompat.h -------------------------------------------------------------------------------- /opencv/include/opencv/cvver.h: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright( C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | //(including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort(including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | /* 43 | definition of the current version of OpenCV 44 | Usefull to test in user programs 45 | */ 46 | 47 | #ifndef _CVVERSION_H_ 48 | #define _CVVERSION_H_ 49 | 50 | #define CV_MAJOR_VERSION 2 51 | #define CV_MINOR_VERSION 0 52 | #define CV_SUBMINOR_VERSION 0 53 | 54 | #define CVAUX_STR_EXP(__A) #__A 55 | #define CVAUX_STR(__A) CVAUX_STR_EXP(__A) 56 | #define CV_VERSION CVAUX_STR(CV_MAJOR_VERSION) "." CVAUX_STR(CV_MINOR_VERSION) "." CVAUX_STR(CV_SUBMINOR_VERSION) 57 | 58 | #endif /*_CVVERSION_H_*/ 59 | -------------------------------------------------------------------------------- /opencv/include/opencv2/contrib/detection_based_tracker.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #if defined(__linux__) || defined(LINUX) || defined(__APPLE__) || defined(ANDROID) 4 | 5 | #include 6 | #include 7 | 8 | #include 9 | 10 | class DetectionBasedTracker 11 | { 12 | public: 13 | struct Parameters 14 | { 15 | int minObjectSize; 16 | int maxObjectSize; 17 | double scaleFactor; 18 | int maxTrackLifetime; 19 | int minNeighbors; 20 | int minDetectionPeriod; //the minimal time between run of the big object detector (on the whole frame) in ms (1000 mean 1 sec), default=0 21 | 22 | Parameters(); 23 | }; 24 | 25 | DetectionBasedTracker(const std::string& cascadeFilename, const Parameters& params); 26 | virtual ~DetectionBasedTracker(); 27 | 28 | virtual bool run(); 29 | virtual void stop(); 30 | virtual void resetTracking(); 31 | 32 | virtual void process(const cv::Mat& imageGray); 33 | 34 | bool setParameters(const Parameters& params); 35 | const Parameters& getParameters(); 36 | 37 | 38 | typedef std::pair Object; 39 | virtual void getObjects(std::vector& result) const; 40 | virtual void getObjects(std::vector& result) const; 41 | 42 | protected: 43 | class SeparateDetectionWork; 44 | cv::Ptr separateDetectionWork; 45 | friend void* workcycleObjectDetectorFunction(void* p); 46 | 47 | 48 | struct InnerParameters 49 | { 50 | int numLastPositionsToTrack; 51 | int numStepsToWaitBeforeFirstShow; 52 | int numStepsToTrackWithoutDetectingIfObjectHasNotBeenShown; 53 | int numStepsToShowWithoutDetecting; 54 | 55 | float coeffTrackingWindowSize; 56 | float coeffObjectSizeToTrack; 57 | float coeffObjectSpeedUsingInPrediction; 58 | 59 | InnerParameters(); 60 | }; 61 | Parameters parameters; 62 | InnerParameters innerParameters; 63 | 64 | struct TrackedObject 65 | { 66 | typedef std::vector PositionsVector; 67 | 68 | PositionsVector lastPositions; 69 | 70 | int numDetectedFrames; 71 | int numFramesNotDetected; 72 | int id; 73 | 74 | TrackedObject(const cv::Rect& rect):numDetectedFrames(1), numFramesNotDetected(0) 75 | { 76 | lastPositions.push_back(rect); 77 | id=getNextId(); 78 | }; 79 | 80 | static int getNextId() 81 | { 82 | static int _id=0; 83 | return _id++; 84 | } 85 | }; 86 | 87 | int numTrackedSteps; 88 | std::vector trackedObjects; 89 | 90 | std::vector weightsPositionsSmoothing; 91 | std::vector weightsSizesSmoothing; 92 | 93 | cv::CascadeClassifier cascadeForTracking; 94 | 95 | 96 | void updateTrackedObjects(const std::vector& detectedObjects); 97 | cv::Rect calcTrackedObjectPositionToShow(int i) const; 98 | void detectInRegion(const cv::Mat& img, const cv::Rect& r, std::vector& detectedObjectsInRegions); 99 | }; 100 | 101 | namespace cv 102 | { 103 | using ::DetectionBasedTracker; 104 | } //end of cv namespace 105 | 106 | #endif 107 | -------------------------------------------------------------------------------- /opencv/include/opencv2/core/devmem2d.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other GpuMaterials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #include "opencv2/core/cuda_devptrs.hpp" 44 | -------------------------------------------------------------------------------- /opencv/include/opencv2/core/version.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright( C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | //(including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort(including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | /* 43 | definition of the current version of OpenCV 44 | Usefull to test in user programs 45 | */ 46 | 47 | #ifndef __OPENCV_VERSION_HPP__ 48 | #define __OPENCV_VERSION_HPP__ 49 | 50 | #define CV_MAJOR_VERSION 2 51 | #define CV_MINOR_VERSION 4 52 | #define CV_SUBMINOR_VERSION 3 53 | 54 | #define CVAUX_STR_EXP(__A) #__A 55 | #define CVAUX_STR(__A) CVAUX_STR_EXP(__A) 56 | #define CV_VERSION CVAUX_STR(CV_MAJOR_VERSION) "." CVAUX_STR(CV_MINOR_VERSION) "." CVAUX_STR(CV_SUBMINOR_VERSION) 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /opencv/include/opencv2/flann/config.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2011 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2011 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * 1. Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 2. Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in the 15 | * documentation and/or other materials provided with the distribution. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | *************************************************************************/ 28 | 29 | 30 | #ifndef OPENCV_FLANN_CONFIG_H_ 31 | #define OPENCV_FLANN_CONFIG_H_ 32 | 33 | #ifdef FLANN_VERSION_ 34 | #undef FLANN_VERSION_ 35 | #endif 36 | #define FLANN_VERSION_ "1.6.10" 37 | 38 | #endif /* OPENCV_FLANN_CONFIG_H_ */ 39 | -------------------------------------------------------------------------------- /opencv/include/opencv2/flann/dummy.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef OPENCV_FLANN_DUMMY_H_ 3 | #define OPENCV_FLANN_DUMMY_H_ 4 | 5 | namespace cvflann 6 | { 7 | 8 | #if (defined WIN32 || defined _WIN32 || defined WINCE) && defined CVAPI_EXPORTS 9 | __declspec(dllexport) 10 | #endif 11 | void dummyfunc(); 12 | 13 | } 14 | 15 | 16 | #endif /* OPENCV_FLANN_DUMMY_H_ */ 17 | -------------------------------------------------------------------------------- /opencv/include/opencv2/flann/general.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * THE BSD LICENSE 8 | * 9 | * Redistribution and use in source and binary forms, with or without 10 | * modification, are permitted provided that the following conditions 11 | * are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright 14 | * notice, this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in the 17 | * documentation and/or other materials provided with the distribution. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | *************************************************************************/ 30 | 31 | #ifndef OPENCV_FLANN_GENERAL_H_ 32 | #define OPENCV_FLANN_GENERAL_H_ 33 | 34 | #include "defines.h" 35 | #include 36 | #include 37 | 38 | namespace cvflann 39 | { 40 | 41 | class FLANNException : public std::runtime_error 42 | { 43 | public: 44 | FLANNException(const char* message) : std::runtime_error(message) { } 45 | 46 | FLANNException(const std::string& message) : std::runtime_error(message) { } 47 | }; 48 | 49 | } 50 | 51 | 52 | #endif /* OPENCV_FLANN_GENERAL_H_ */ 53 | -------------------------------------------------------------------------------- /opencv/include/opencv2/flann/object_factory.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * THE BSD LICENSE 8 | * 9 | * Redistribution and use in source and binary forms, with or without 10 | * modification, are permitted provided that the following conditions 11 | * are met: 12 | * 13 | * 1. Redistributions of source code must retain the above copyright 14 | * notice, this list of conditions and the following disclaimer. 15 | * 2. Redistributions in binary form must reproduce the above copyright 16 | * notice, this list of conditions and the following disclaimer in the 17 | * documentation and/or other materials provided with the distribution. 18 | * 19 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | *************************************************************************/ 30 | 31 | #ifndef OPENCV_FLANN_OBJECT_FACTORY_H_ 32 | #define OPENCV_FLANN_OBJECT_FACTORY_H_ 33 | 34 | #include 35 | 36 | namespace cvflann 37 | { 38 | 39 | class CreatorNotFound 40 | { 41 | }; 42 | 43 | template 46 | class ObjectFactory 47 | { 48 | typedef ObjectFactory ThisClass; 49 | typedef std::map ObjectRegistry; 50 | 51 | // singleton class, private constructor 52 | ObjectFactory() {} 53 | 54 | public: 55 | 56 | bool subscribe(UniqueIdType id, ObjectCreator creator) 57 | { 58 | if (object_registry.find(id) != object_registry.end()) return false; 59 | 60 | object_registry[id] = creator; 61 | return true; 62 | } 63 | 64 | bool unregister(UniqueIdType id) 65 | { 66 | return object_registry.erase(id) == 1; 67 | } 68 | 69 | ObjectCreator create(UniqueIdType id) 70 | { 71 | typename ObjectRegistry::const_iterator iter = object_registry.find(id); 72 | 73 | if (iter == object_registry.end()) { 74 | throw CreatorNotFound(); 75 | } 76 | 77 | return iter->second; 78 | } 79 | 80 | static ThisClass& instance() 81 | { 82 | static ThisClass the_factory; 83 | return the_factory; 84 | } 85 | private: 86 | ObjectRegistry object_registry; 87 | }; 88 | 89 | } 90 | 91 | #endif /* OPENCV_FLANN_OBJECT_FACTORY_H_ */ 92 | -------------------------------------------------------------------------------- /opencv/include/opencv2/flann/params.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2011 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2011 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * 1. Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 2. Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in the 15 | * documentation and/or other materials provided with the distribution. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | *************************************************************************/ 28 | 29 | 30 | #ifndef OPENCV_FLANN_PARAMS_H_ 31 | #define OPENCV_FLANN_PARAMS_H_ 32 | 33 | #include "any.h" 34 | #include "general.h" 35 | #include 36 | #include 37 | 38 | 39 | namespace cvflann 40 | { 41 | 42 | typedef std::map IndexParams; 43 | 44 | struct SearchParams : public IndexParams 45 | { 46 | SearchParams(int checks = 32, float eps = 0, bool sorted = true ) 47 | { 48 | // how many leafs to visit when searching for neighbours (-1 for unlimited) 49 | (*this)["checks"] = checks; 50 | // search for eps-approximate neighbours (default: 0) 51 | (*this)["eps"] = eps; 52 | // only for radius search, require neighbours sorted by distance (default: true) 53 | (*this)["sorted"] = sorted; 54 | } 55 | }; 56 | 57 | 58 | template 59 | T get_param(const IndexParams& params, std::string name, const T& default_value) 60 | { 61 | IndexParams::const_iterator it = params.find(name); 62 | if (it != params.end()) { 63 | return it->second.cast(); 64 | } 65 | else { 66 | return default_value; 67 | } 68 | } 69 | 70 | template 71 | T get_param(const IndexParams& params, std::string name) 72 | { 73 | IndexParams::const_iterator it = params.find(name); 74 | if (it != params.end()) { 75 | return it->second.cast(); 76 | } 77 | else { 78 | throw FLANNException(std::string("Missing parameter '")+name+std::string("' in the parameters given")); 79 | } 80 | } 81 | 82 | inline void print_params(const IndexParams& params) 83 | { 84 | IndexParams::const_iterator it; 85 | 86 | for(it=params.begin(); it!=params.end(); ++it) { 87 | std::cout << it->first << " : " << it->second << std::endl; 88 | } 89 | } 90 | 91 | 92 | 93 | } 94 | 95 | 96 | #endif /* OPENCV_FLANN_PARAMS_H_ */ 97 | -------------------------------------------------------------------------------- /opencv/include/opencv2/flann/sampling.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * 1. Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 2. Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in the 15 | * documentation and/or other materials provided with the distribution. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | *************************************************************************/ 28 | 29 | 30 | #ifndef OPENCV_FLANN_SAMPLING_H_ 31 | #define OPENCV_FLANN_SAMPLING_H_ 32 | 33 | #include "matrix.h" 34 | #include "random.h" 35 | 36 | namespace cvflann 37 | { 38 | 39 | template 40 | Matrix random_sample(Matrix& srcMatrix, long size, bool remove = false) 41 | { 42 | Matrix newSet(new T[size * srcMatrix.cols], size,srcMatrix.cols); 43 | 44 | T* src,* dest; 45 | for (long i=0; i 63 | Matrix random_sample(const Matrix& srcMatrix, size_t size) 64 | { 65 | UniqueRandom rand((int)srcMatrix.rows); 66 | Matrix newSet(new T[size * srcMatrix.cols], size,srcMatrix.cols); 67 | 68 | T* src,* dest; 69 | for (size_t i=0; i 35 | 36 | 37 | namespace cvflann 38 | { 39 | 40 | /** 41 | * A start-stop timer class. 42 | * 43 | * Can be used to time portions of code. 44 | */ 45 | class StartStopTimer 46 | { 47 | clock_t startTime; 48 | 49 | public: 50 | /** 51 | * Value of the timer. 52 | */ 53 | double value; 54 | 55 | 56 | /** 57 | * Constructor. 58 | */ 59 | StartStopTimer() 60 | { 61 | reset(); 62 | } 63 | 64 | /** 65 | * Starts the timer. 66 | */ 67 | void start() 68 | { 69 | startTime = clock(); 70 | } 71 | 72 | /** 73 | * Stops the timer and updates timer value. 74 | */ 75 | void stop() 76 | { 77 | clock_t stopTime = clock(); 78 | value += ( (double)stopTime - startTime) / CLOCKS_PER_SEC; 79 | } 80 | 81 | /** 82 | * Resets the timer value to 0. 83 | */ 84 | void reset() 85 | { 86 | value = 0; 87 | } 88 | 89 | }; 90 | 91 | } 92 | 93 | #endif // FLANN_TIMER_H 94 | -------------------------------------------------------------------------------- /opencv/include/opencv2/gpu/device/dynamic_smem.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_GPU_DYNAMIC_SMEM_HPP__ 44 | #define __OPENCV_GPU_DYNAMIC_SMEM_HPP__ 45 | 46 | namespace cv { namespace gpu { namespace device 47 | { 48 | template struct DynamicSharedMem 49 | { 50 | __device__ __forceinline__ operator T*() 51 | { 52 | extern __shared__ int __smem[]; 53 | return (T*)__smem; 54 | } 55 | 56 | __device__ __forceinline__ operator const T*() const 57 | { 58 | extern __shared__ int __smem[]; 59 | return (T*)__smem; 60 | } 61 | }; 62 | 63 | // specialize for double to avoid unaligned memory access compile errors 64 | template<> struct DynamicSharedMem 65 | { 66 | __device__ __forceinline__ operator double*() 67 | { 68 | extern __shared__ double __smem_d[]; 69 | return (double*)__smem_d; 70 | } 71 | 72 | __device__ __forceinline__ operator const double*() const 73 | { 74 | extern __shared__ double __smem_d[]; 75 | return (double*)__smem_d; 76 | } 77 | }; 78 | }}} 79 | 80 | #endif // __OPENCV_GPU_DYNAMIC_SMEM_HPP__ 81 | -------------------------------------------------------------------------------- /opencv/include/opencv2/gpu/device/funcattrib.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | 44 | #ifndef __OPENCV_GPU_DEVICE_FUNCATTRIB_HPP_ 45 | #define __OPENCV_GPU_DEVICE_FUNCATTRIB_HPP_ 46 | 47 | #include 48 | 49 | namespace cv { namespace gpu { namespace device 50 | { 51 | template 52 | void printFuncAttrib(Func& func) 53 | { 54 | 55 | cudaFuncAttributes attrs; 56 | cudaFuncGetAttributes(&attrs, func); 57 | 58 | printf("=== Function stats ===\n"); 59 | printf("Name: \n"); 60 | printf("sharedSizeBytes = %d\n", attrs.sharedSizeBytes); 61 | printf("constSizeBytes = %d\n", attrs.constSizeBytes); 62 | printf("localSizeBytes = %d\n", attrs.localSizeBytes); 63 | printf("maxThreadsPerBlock = %d\n", attrs.maxThreadsPerBlock); 64 | printf("numRegs = %d\n", attrs.numRegs); 65 | printf("ptxVersion = %d\n", attrs.ptxVersion); 66 | printf("binaryVersion = %d\n", attrs.binaryVersion); 67 | printf("\n"); 68 | fflush(stdout); 69 | } 70 | }}} // namespace cv { namespace gpu { namespace device 71 | 72 | #endif /* __OPENCV_GPU_DEVICE_FUNCATTRIB_HPP_ */ -------------------------------------------------------------------------------- /opencv/include/opencv2/gpu/device/static_check.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_GPU_GPU_DEVICE_STATIC_CHECK_HPP__ 44 | #define __OPENCV_GPU_GPU_DEVICE_STATIC_CHECK_HPP__ 45 | 46 | #if defined(__CUDACC__) 47 | #define __OPENCV_GPU_HOST_DEVICE__ __host__ __device__ __forceinline__ 48 | #else 49 | #define __OPENCV_GPU_HOST_DEVICE__ 50 | #endif 51 | 52 | namespace cv { namespace gpu 53 | { 54 | namespace device 55 | { 56 | template struct Static {}; 57 | 58 | template<> struct Static 59 | { 60 | __OPENCV_GPU_HOST_DEVICE__ static void check() {}; 61 | }; 62 | } 63 | }} 64 | 65 | #undef __OPENCV_GPU_HOST_DEVICE__ 66 | 67 | #endif /* __OPENCV_GPU_GPU_DEVICE_STATIC_CHECK_HPP__ */ 68 | -------------------------------------------------------------------------------- /opencv/include/opencv2/gpu/device/transform.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_GPU_TRANSFORM_HPP__ 44 | #define __OPENCV_GPU_TRANSFORM_HPP__ 45 | 46 | #include "common.hpp" 47 | #include "utility.hpp" 48 | #include "detail/transform_detail.hpp" 49 | 50 | namespace cv { namespace gpu { namespace device 51 | { 52 | template 53 | static inline void transform(PtrStepSz src, PtrStepSz dst, UnOp op, const Mask& mask, cudaStream_t stream) 54 | { 55 | typedef TransformFunctorTraits ft; 56 | transform_detail::TransformDispatcher::cn == 1 && VecTraits::cn == 1 && ft::smart_shift != 1>::call(src, dst, op, mask, stream); 57 | } 58 | 59 | template 60 | static inline void transform(PtrStepSz src1, PtrStepSz src2, PtrStepSz dst, BinOp op, const Mask& mask, cudaStream_t stream) 61 | { 62 | typedef TransformFunctorTraits ft; 63 | transform_detail::TransformDispatcher::cn == 1 && VecTraits::cn == 1 && VecTraits::cn == 1 && ft::smart_shift != 1>::call(src1, src2, dst, op, mask, stream); 64 | } 65 | }}} 66 | 67 | #endif // __OPENCV_GPU_TRANSFORM_HPP__ 68 | -------------------------------------------------------------------------------- /opencv/include/opencv2/gpu/device/warp_reduce.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or bpied warranties, including, but not limited to, the bpied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | 44 | #ifndef OPENCV_GPU_WARP_REDUCE_HPP__ 45 | #define OPENCV_GPU_WARP_REDUCE_HPP__ 46 | 47 | namespace cv { namespace gpu { namespace device 48 | { 49 | template 50 | __device__ __forceinline__ T warp_reduce(volatile T *ptr , const unsigned int tid = threadIdx.x) 51 | { 52 | const unsigned int lane = tid & 31; // index of thread in warp (0..31) 53 | 54 | if (lane < 16) 55 | { 56 | T partial = ptr[tid]; 57 | 58 | ptr[tid] = partial = partial + ptr[tid + 16]; 59 | ptr[tid] = partial = partial + ptr[tid + 8]; 60 | ptr[tid] = partial = partial + ptr[tid + 4]; 61 | ptr[tid] = partial = partial + ptr[tid + 2]; 62 | ptr[tid] = partial = partial + ptr[tid + 1]; 63 | } 64 | 65 | return ptr[tid - lane]; 66 | } 67 | }}} // namespace cv { namespace gpu { namespace device { 68 | 69 | #endif /* OPENCV_GPU_WARP_REDUCE_HPP__ */ -------------------------------------------------------------------------------- /opencv/include/opencv2/gpu/devmem2d.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other GpuMaterials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #include "opencv2/core/cuda_devptrs.hpp" 44 | -------------------------------------------------------------------------------- /opencv/include/opencv2/gpu/gpumat.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other GpuMaterials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #include "opencv2/core/gpumat.hpp" 44 | -------------------------------------------------------------------------------- /opencv/include/opencv2/gpu/stream_accessor.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other GpuMaterials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_GPU_STREAM_ACCESSOR_HPP__ 44 | #define __OPENCV_GPU_STREAM_ACCESSOR_HPP__ 45 | 46 | #include "opencv2/gpu/gpu.hpp" 47 | #include "cuda_runtime_api.h" 48 | 49 | namespace cv 50 | { 51 | namespace gpu 52 | { 53 | // This is only header file that depends on Cuda. All other headers are independent. 54 | // So if you use OpenCV binaries you do noot need to install Cuda Toolkit. 55 | // But of you wanna use GPU by yourself, may get cuda stream instance using the class below. 56 | // In this case you have to install Cuda Toolkit. 57 | struct StreamAccessor 58 | { 59 | CV_EXPORTS static cudaStream_t getStream(const Stream& stream); 60 | }; 61 | } 62 | } 63 | 64 | #endif /* __OPENCV_GPU_STREAM_ACCESSOR_HPP__ */ -------------------------------------------------------------------------------- /opencv/include/opencv2/nonfree/nonfree.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2012, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_NONFREE_HPP__ 44 | #define __OPENCV_NONFREE_HPP__ 45 | 46 | #include "opencv2/nonfree/features2d.hpp" 47 | 48 | namespace cv 49 | { 50 | 51 | CV_EXPORTS_W bool initModule_nonfree(); 52 | 53 | } 54 | 55 | #endif 56 | 57 | /* End of file. */ 58 | -------------------------------------------------------------------------------- /opencv/include/opencv2/opencv.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2010, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_ALL_HPP__ 44 | #define __OPENCV_ALL_HPP__ 45 | 46 | #include "opencv2/core/core_c.h" 47 | #include "opencv2/core/core.hpp" 48 | #include "opencv2/flann/miniflann.hpp" 49 | #include "opencv2/imgproc/imgproc_c.h" 50 | #include "opencv2/imgproc/imgproc.hpp" 51 | #include "opencv2/photo/photo.hpp" 52 | #include "opencv2/video/video.hpp" 53 | #include "opencv2/features2d/features2d.hpp" 54 | #include "opencv2/objdetect/objdetect.hpp" 55 | #include "opencv2/calib3d/calib3d.hpp" 56 | #include "opencv2/ml/ml.hpp" 57 | #include "opencv2/highgui/highgui_c.h" 58 | #include "opencv2/highgui/highgui.hpp" 59 | #include "opencv2/contrib/contrib.hpp" 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /opencv/include/opencv2/opencv_modules.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ** File generated automatically, do not modify ** 3 | * 4 | * This file defines the list of modules available in current build configuration 5 | * 6 | * 7 | */ 8 | 9 | #define HAVE_OPENCV_CALIB3D 10 | #define HAVE_OPENCV_CONTRIB 11 | #define HAVE_OPENCV_CORE 12 | #define HAVE_OPENCV_FEATURES2D 13 | #define HAVE_OPENCV_FLANN 14 | #define HAVE_OPENCV_GPU 15 | #define HAVE_OPENCV_HIGHGUI 16 | #define HAVE_OPENCV_IMGPROC 17 | #define HAVE_OPENCV_LEGACY 18 | #define HAVE_OPENCV_ML 19 | #define HAVE_OPENCV_NONFREE 20 | #define HAVE_OPENCV_OBJDETECT 21 | #define HAVE_OPENCV_PHOTO 22 | #define HAVE_OPENCV_STITCHING 23 | #define HAVE_OPENCV_TS 24 | #define HAVE_OPENCV_VIDEO 25 | #define HAVE_OPENCV_VIDEOSTAB 26 | 27 | 28 | -------------------------------------------------------------------------------- /opencv/include/opencv2/photo/photo_c.h: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2008-2012, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_PHOTO_C_H__ 44 | #define __OPENCV_PHOTO_C_H__ 45 | 46 | #include "opencv2/core/core_c.h" 47 | 48 | #ifdef __cplusplus 49 | extern "C" { 50 | #endif 51 | 52 | /* Inpainting algorithms */ 53 | enum 54 | { 55 | CV_INPAINT_NS =0, 56 | CV_INPAINT_TELEA =1 57 | }; 58 | 59 | 60 | /* Inpaints the selected region in the image */ 61 | CVAPI(void) cvInpaint( const CvArr* src, const CvArr* inpaint_mask, 62 | CvArr* dst, double inpaintRange, int flags ); 63 | 64 | 65 | #ifdef __cplusplus 66 | } //extern "C" 67 | #endif 68 | 69 | #endif //__OPENCV_PHOTO_C_H__ 70 | -------------------------------------------------------------------------------- /opencv/include/opencv2/stitching/detail/autocalib.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_STITCHING_AUTOCALIB_HPP__ 44 | #define __OPENCV_STITCHING_AUTOCALIB_HPP__ 45 | 46 | #include "opencv2/core/core.hpp" 47 | #include "matchers.hpp" 48 | 49 | namespace cv { 50 | namespace detail { 51 | 52 | // See "Construction of Panoramic Image Mosaics with Global and Local Alignment" 53 | // by Heung-Yeung Shum and Richard Szeliski. 54 | void CV_EXPORTS focalsFromHomography(const Mat &H, double &f0, double &f1, bool &f0_ok, bool &f1_ok); 55 | 56 | void CV_EXPORTS estimateFocal(const std::vector &features, 57 | const std::vector &pairwise_matches, 58 | std::vector &focals); 59 | 60 | bool CV_EXPORTS calibrateRotatingCamera(const std::vector &Hs, Mat &K); 61 | 62 | } // namespace detail 63 | } // namespace cv 64 | 65 | #endif // __OPENCV_STITCHING_AUTOCALIB_HPP__ 66 | -------------------------------------------------------------------------------- /opencv/include/opencv2/stitching/detail/camera.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_STITCHING_CAMERA_HPP__ 44 | #define __OPENCV_STITCHING_CAMERA_HPP__ 45 | 46 | #include "opencv2/core/core.hpp" 47 | 48 | namespace cv { 49 | namespace detail { 50 | 51 | struct CV_EXPORTS CameraParams 52 | { 53 | CameraParams(); 54 | CameraParams(const CameraParams& other); 55 | const CameraParams& operator =(const CameraParams& other); 56 | Mat K() const; 57 | 58 | double focal; // Focal length 59 | double aspect; // Aspect ratio 60 | double ppx; // Principal point X 61 | double ppy; // Principal point Y 62 | Mat R; // Rotation 63 | Mat t; // Translation 64 | }; 65 | 66 | } // namespace detail 67 | } // namespace cv 68 | 69 | #endif // #ifndef __OPENCV_STITCHING_CAMERA_HPP__ 70 | -------------------------------------------------------------------------------- /opencv/include/opencv2/video/video.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_VIDEO_HPP__ 44 | #define __OPENCV_VIDEO_HPP__ 45 | 46 | #include "opencv2/video/tracking.hpp" 47 | #include "opencv2/video/background_segm.hpp" 48 | 49 | #ifdef __cplusplus 50 | namespace cv 51 | { 52 | 53 | CV_EXPORTS bool initModule_video(void); 54 | 55 | } 56 | #endif 57 | 58 | #endif //__OPENCV_VIDEO_HPP__ 59 | -------------------------------------------------------------------------------- /opencv/include/opencv2/videostab/frame_source.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2011, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_VIDEOSTAB_FRAME_SOURCE_HPP__ 44 | #define __OPENCV_VIDEOSTAB_FRAME_SOURCE_HPP__ 45 | 46 | #include 47 | #include 48 | #include "opencv2/core/core.hpp" 49 | #include "opencv2/highgui/highgui.hpp" 50 | 51 | namespace cv 52 | { 53 | namespace videostab 54 | { 55 | 56 | class CV_EXPORTS IFrameSource 57 | { 58 | public: 59 | virtual ~IFrameSource() {} 60 | virtual void reset() = 0; 61 | virtual Mat nextFrame() = 0; 62 | }; 63 | 64 | class CV_EXPORTS NullFrameSource : public IFrameSource 65 | { 66 | public: 67 | virtual void reset() {} 68 | virtual Mat nextFrame() { return Mat(); } 69 | }; 70 | 71 | class CV_EXPORTS VideoFileSource : public IFrameSource 72 | { 73 | public: 74 | VideoFileSource(const std::string &path, bool volatileFrame = false); 75 | 76 | virtual void reset(); 77 | virtual Mat nextFrame(); 78 | 79 | int frameCount() { return static_cast(reader_.get(CV_CAP_PROP_FRAME_COUNT)); } 80 | double fps() { return reader_.get(CV_CAP_PROP_FPS); } 81 | 82 | private: 83 | std::string path_; 84 | bool volatileFrame_; 85 | VideoCapture reader_; 86 | }; 87 | 88 | } // namespace videostab 89 | } // namespace cv 90 | 91 | #endif 92 | -------------------------------------------------------------------------------- /opencv/include/opencv2/videostab/log.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2011, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_VIDEOSTAB_LOG_HPP__ 44 | #define __OPENCV_VIDEOSTAB_LOG_HPP__ 45 | 46 | #include "opencv2/core/core.hpp" 47 | 48 | namespace cv 49 | { 50 | namespace videostab 51 | { 52 | 53 | class CV_EXPORTS ILog 54 | { 55 | public: 56 | virtual ~ILog() {} 57 | virtual void print(const char *format, ...) = 0; 58 | }; 59 | 60 | class CV_EXPORTS NullLog : public ILog 61 | { 62 | public: 63 | virtual void print(const char * /*format*/, ...) {} 64 | }; 65 | 66 | class CV_EXPORTS LogToStdout : public ILog 67 | { 68 | public: 69 | virtual void print(const char *format, ...); 70 | }; 71 | 72 | } // namespace videostab 73 | } // namespace cv 74 | 75 | #endif 76 | -------------------------------------------------------------------------------- /opencv/include/opencv2/videostab/videostab.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2011, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_VIDEOSTAB_HPP__ 44 | #define __OPENCV_VIDEOSTAB_HPP__ 45 | 46 | #include "opencv2/videostab/stabilizer.hpp" 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /opencv/include/opencv2/world/world.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009-2010, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_WORLD_HPP__ 44 | #define __OPENCV_WORLD_HPP__ 45 | 46 | #include "opencv2/core/core.hpp" 47 | 48 | #ifdef __cplusplus 49 | namespace cv 50 | { 51 | 52 | CV_EXPORTS_W bool initAll(); 53 | 54 | } 55 | 56 | #endif 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /opencv/ml/src/dummy.cpp: -------------------------------------------------------------------------------- 1 | // this file is empty but needed for libtool 2 | -------------------------------------------------------------------------------- /opencv/ml/src/ml.cpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // 12 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 13 | // Third party copyrights are property of their respective owners. 14 | // 15 | // Redistribution and use in source and binary forms, with or without modification, 16 | // are permitted provided that the following conditions are met: 17 | // 18 | // * Redistribution's of source code must retain the above copyright notice, 19 | // this list of conditions and the following disclaimer. 20 | // 21 | // * Redistribution's in binary form must reproduce the above copyright notice, 22 | // this list of conditions and the following disclaimer in the documentation 23 | // and/or other materials provided with the distribution. 24 | // 25 | // * The name of Intel Corporation may not be used to endorse or promote products 26 | // derived from this software without specific prior written permission. 27 | // 28 | // This software is provided by the copyright holders and contributors "as is" and 29 | // any express or implied warranties, including, but not limited to, the implied 30 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 31 | // In no event shall the Intel Corporation or contributors be liable for any direct, 32 | // indirect, incidental, special, exemplary, or consequential damages 33 | // (including, but not limited to, procurement of substitute goods or services; 34 | // loss of use, data, or profits; or business interruption) however caused 35 | // and on any theory of liability, whether in contract, strict liability, 36 | // or tort (including negligence or otherwise) arising in any way out of 37 | // the use of this software, even if advised of the possibility of such damage. 38 | // 39 | //M*/ 40 | 41 | #include "_ml.h" 42 | -------------------------------------------------------------------------------- /opencv/src/opencv/cv/cvconvolve.cpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #include "_cv.h" 43 | 44 | /* End of file. */ 45 | -------------------------------------------------------------------------------- /opencv/src/opencv/cv/cvprecomp.cpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #include "_cv.h" 43 | 44 | /* End of file. */ 45 | -------------------------------------------------------------------------------- /opencv/src/opencv/cv/cvswitcher.cpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #include "_cv.h" 43 | 44 | #undef IPCVAPI_EX 45 | #define IPCVAPI_EX(type,func_name,names,modules,arg) \ 46 | { (void**)&func_name##_p, (void*)(size_t)-1, names, modules, 0 }, 47 | 48 | static CvPluginFuncInfo cv_ipp_tab[] = 49 | { 50 | #undef _CV_IPP_H_ 51 | #include "_cvipp.h" 52 | #undef _CV_IPP_H_ 53 | {0, 0, 0, 0, 0} 54 | }; 55 | 56 | static CvModuleInfo cv_info = { 0, "cv", CV_VERSION, cv_ipp_tab }; 57 | CvModule cv_module( &cv_info ); 58 | 59 | /* End of file. */ 60 | -------------------------------------------------------------------------------- /opencv/src/opencv/cv/dummy.cpp: -------------------------------------------------------------------------------- 1 | // this file is empty but needed for libtool 2 | -------------------------------------------------------------------------------- /opencv/src/opencv/cxcore/cxprecomp.cpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #include "_cxcore.h" 43 | 44 | /* End of file. */ 45 | -------------------------------------------------------------------------------- /opencv/src/opencv/cxcore/dummy.cpp: -------------------------------------------------------------------------------- 1 | // this file is empty but needed for libtool 2 | -------------------------------------------------------------------------------- /opencv/src/opencv/highgui/1_Warning.txt: -------------------------------------------------------------------------------- 1 | 2 | BLOCKED FILE ALERTA file has been blocked due to the 'Intel Email File Filtering Policy' rule.Context: 'makeswig.sh'Disallowed due to Ticket Number: '6bcc-50d0-0d03-0001' 3 | See your system administrator for further information. Copyright 1999-2007 McAfee, Inc.All Rights Reserved.http://www.mcafee.com -------------------------------------------------------------------------------- /opencv/src/opencv/highgui/grfmt_bmp.h: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef _GRFMT_BMP_H_ 44 | #define _GRFMT_BMP_H_ 45 | 46 | #include "grfmt_base.h" 47 | 48 | namespace cv 49 | { 50 | 51 | enum BmpCompression 52 | { 53 | BMP_RGB = 0, 54 | BMP_RLE8 = 1, 55 | BMP_RLE4 = 2, 56 | BMP_BITFIELDS = 3 57 | }; 58 | 59 | 60 | // Windows Bitmap reader 61 | class BmpDecoder : public BaseImageDecoder 62 | { 63 | public: 64 | 65 | BmpDecoder(); 66 | ~BmpDecoder(); 67 | 68 | bool readData( Mat& img ); 69 | bool readHeader(); 70 | void close(); 71 | 72 | ImageDecoder newDecoder() const; 73 | 74 | protected: 75 | 76 | RLByteStream m_strm; 77 | PaletteEntry m_palette[256]; 78 | int m_bpp; 79 | int m_offset; 80 | BmpCompression m_rle_code; 81 | }; 82 | 83 | 84 | // ... writer 85 | class BmpEncoder : public BaseImageEncoder 86 | { 87 | public: 88 | BmpEncoder(); 89 | ~BmpEncoder(); 90 | 91 | bool write( const Mat& img, const vector& params ); 92 | 93 | ImageEncoder newEncoder() const; 94 | }; 95 | 96 | } 97 | 98 | #endif/*_GRFMT_BMP_H_*/ 99 | -------------------------------------------------------------------------------- /opencv/src/opencv/highgui/grfmt_imageio.h: -------------------------------------------------------------------------------- 1 | /* 2 | * grfmt_imageio.h 3 | * 4 | * 5 | * Created by Morgan Conbere on 5/17/07. 6 | * 7 | */ 8 | 9 | #ifndef _GRFMT_IMAGEIO_H_ 10 | #define _GRFMT_IMAGEIO_H_ 11 | 12 | #ifdef HAVE_IMAGEIO 13 | 14 | #include "grfmt_base.h" 15 | #include 16 | 17 | namespace cv 18 | { 19 | 20 | class ImageIODecoder : public BaseImageDecoder 21 | { 22 | public: 23 | 24 | ImageIODecoder(); 25 | ~ImageIODecoder(); 26 | 27 | bool readData( Mat& img ); 28 | bool readHeader(); 29 | void close(); 30 | 31 | size_t signatureLength() const; 32 | bool checkSignature( const string& signature ) const; 33 | 34 | ImageDecoder newDecoder() const; 35 | 36 | protected: 37 | 38 | CGImageRef imageRef; 39 | }; 40 | 41 | class ImageIOEncoder : public BaseImageEncoder 42 | { 43 | public: 44 | ImageIOEncoder(); 45 | ~ImageIOEncoder(); 46 | 47 | bool write( const Mat& img, const vector& params ); 48 | 49 | ImageEncoder newEncoder() const; 50 | }; 51 | 52 | } 53 | 54 | #endif/*HAVE_IMAGEIO*/ 55 | 56 | #endif/*_GRFMT_IMAGEIO_H_*/ 57 | -------------------------------------------------------------------------------- /opencv/src/opencv/highgui/grfmt_jpeg.h: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef _GRFMT_JPEG_H_ 44 | #define _GRFMT_JPEG_H_ 45 | 46 | #include "grfmt_base.h" 47 | #include "bitstrm.h" 48 | 49 | #ifdef HAVE_JPEG 50 | 51 | // IJG-based Jpeg codec 52 | 53 | namespace cv 54 | { 55 | 56 | class JpegDecoder : public BaseImageDecoder 57 | { 58 | public: 59 | 60 | JpegDecoder(); 61 | virtual ~JpegDecoder(); 62 | 63 | bool readData( Mat& img ); 64 | bool readHeader(); 65 | void close(); 66 | 67 | ImageDecoder newDecoder() const; 68 | 69 | protected: 70 | 71 | FILE* m_f; 72 | void* m_state; 73 | }; 74 | 75 | 76 | class JpegEncoder : public BaseImageEncoder 77 | { 78 | public: 79 | JpegEncoder(); 80 | virtual ~JpegEncoder(); 81 | 82 | bool write( const Mat& img, const vector& params ); 83 | ImageEncoder newEncoder() const; 84 | }; 85 | 86 | } 87 | 88 | #endif 89 | 90 | #endif/*_GRFMT_JPEG_H_*/ 91 | -------------------------------------------------------------------------------- /opencv/src/opencv/highgui/grfmt_jpeg2000.h: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef _GRFMT_JASPER_H_ 44 | #define _GRFMT_JASPER_H_ 45 | 46 | #ifdef HAVE_JASPER 47 | 48 | #include "grfmt_base.h" 49 | 50 | namespace cv 51 | { 52 | 53 | class Jpeg2KDecoder : public BaseImageDecoder 54 | { 55 | public: 56 | 57 | Jpeg2KDecoder(); 58 | virtual ~Jpeg2KDecoder(); 59 | 60 | bool readData( Mat& img ); 61 | bool readHeader(); 62 | void close(); 63 | ImageDecoder newDecoder() const; 64 | 65 | protected: 66 | bool readComponent8u( uchar *data, void *buffer, int step, int cmpt, 67 | int maxval, int offset, int ncmpts ); 68 | bool readComponent16u( unsigned short *data, void *buffer, int step, int cmpt, 69 | int maxval, int offset, int ncmpts ); 70 | 71 | void *m_stream; 72 | void *m_image; 73 | }; 74 | 75 | 76 | class Jpeg2KEncoder : public BaseImageEncoder 77 | { 78 | public: 79 | Jpeg2KEncoder(); 80 | virtual ~Jpeg2KEncoder(); 81 | 82 | bool isFormatSupported( int depth ) const; 83 | bool write( const Mat& img, const vector& params ); 84 | ImageEncoder newEncoder() const; 85 | 86 | protected: 87 | bool writeComponent8u( void *img, const Mat& _img ); 88 | bool writeComponent16u( void *img, const Mat& _img ); 89 | }; 90 | 91 | } 92 | 93 | #endif 94 | 95 | #endif/*_GRFMT_JASPER_H_*/ 96 | -------------------------------------------------------------------------------- /opencv/src/opencv/highgui/grfmt_pxm.h: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef _GRFMT_PxM_H_ 44 | #define _GRFMT_PxM_H_ 45 | 46 | #include "grfmt_base.h" 47 | #include "bitstrm.h" 48 | 49 | namespace cv 50 | { 51 | 52 | class PxMDecoder : public BaseImageDecoder 53 | { 54 | public: 55 | 56 | PxMDecoder(); 57 | virtual ~PxMDecoder(); 58 | 59 | bool readData( Mat& img ); 60 | bool readHeader(); 61 | void close(); 62 | 63 | size_t signatureLength() const; 64 | bool checkSignature( const string& signature ) const; 65 | ImageDecoder newDecoder() const; 66 | 67 | protected: 68 | 69 | RLByteStream m_strm; 70 | PaletteEntry m_palette[256]; 71 | int m_bpp; 72 | int m_offset; 73 | bool m_binary; 74 | int m_maxval; 75 | }; 76 | 77 | 78 | class PxMEncoder : public BaseImageEncoder 79 | { 80 | public: 81 | PxMEncoder(); 82 | virtual ~PxMEncoder(); 83 | 84 | bool isFormatSupported( int depth ) const; 85 | bool write( const Mat& img, const vector& params ); 86 | 87 | ImageEncoder newEncoder() const; 88 | }; 89 | 90 | } 91 | 92 | #endif/*_GRFMT_PxM_H_*/ 93 | -------------------------------------------------------------------------------- /opencv/src/opencv/highgui/grfmts.h: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef _GRFMTS_H_ 43 | #define _GRFMTS_H_ 44 | 45 | #include "grfmt_base.h" 46 | #include "grfmt_imageio.h" 47 | #include "grfmt_bmp.h" 48 | #include "grfmt_sunras.h" 49 | #include "grfmt_jpeg.h" 50 | #include "grfmt_pxm.h" 51 | #include "grfmt_tiff.h" 52 | #include "grfmt_png.h" 53 | #include "grfmt_jpeg2000.h" 54 | #include "grfmt_exr.h" 55 | 56 | #endif/*_GRFMTS_H_*/ 57 | -------------------------------------------------------------------------------- /opencv/src/opencv/highgui/gstappsink.h: -------------------------------------------------------------------------------- 1 | /* GStreamer 2 | * Copyright (C) 2007 David Schleef 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Library General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Library General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Library General Public 15 | * License along with this library; if not, write to the 16 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 | * Boston, MA 02111-1307, USA. 18 | */ 19 | 20 | #ifndef _GST_APP_SINK_H_ 21 | #define _GST_APP_SINK_H_ 22 | 23 | #include 24 | #include 25 | 26 | G_BEGIN_DECLS 27 | 28 | #define GST_TYPE_APP_SINK \ 29 | (gst_app_sink_get_type()) 30 | #define GST_APP_SINK(obj) \ 31 | (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_APP_SINK,GstAppSink)) 32 | #define GST_APP_SINK_CLASS(klass) \ 33 | (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_APP_SINK,GstAppSinkClass)) 34 | #define GST_IS_APP_SINK(obj) \ 35 | (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_APP_SINK)) 36 | #define GST_IS_APP_SINK_CLASS(klass) \ 37 | (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_APP_SINK)) 38 | 39 | typedef struct _GstAppSink GstAppSink; 40 | typedef struct _GstAppSinkClass GstAppSinkClass; 41 | 42 | struct _GstAppSink 43 | { 44 | GstBaseSink basesink; 45 | 46 | /*< private >*/ 47 | GstCaps *caps; 48 | 49 | GCond *cond; 50 | GMutex *mutex; 51 | GQueue *queue; 52 | GstBuffer *preroll; 53 | gboolean started; 54 | gboolean is_eos; 55 | }; 56 | 57 | struct _GstAppSinkClass 58 | { 59 | GstBaseSinkClass basesink_class; 60 | 61 | /* signals */ 62 | gboolean (*eos) (GstAppSink *sink); 63 | gboolean (*new_preroll) (GstAppSink *sink); 64 | gboolean (*new_buffer) (GstAppSink *sink); 65 | 66 | /* actions */ 67 | GstBuffer * (*pull_preroll) (GstAppSink *sink); 68 | GstBuffer * (*pull_buffer) (GstAppSink *sink); 69 | }; 70 | 71 | GType gst_app_sink_get_type(void); 72 | 73 | GST_DEBUG_CATEGORY_EXTERN (app_sink_debug); 74 | 75 | void gst_app_sink_set_caps (GstAppSink *appsink, const GstCaps *caps); 76 | GstCaps * gst_app_sink_get_caps (GstAppSink *appsink); 77 | 78 | gboolean gst_app_sink_is_eos (GstAppSink *appsink); 79 | 80 | GstBuffer * gst_app_sink_pull_preroll (GstAppSink *appsink); 81 | GstBuffer * gst_app_sink_pull_buffer (GstAppSink *appsink); 82 | GstBuffer * gst_app_sink_peek_buffer (GstAppSink *appsink); 83 | 84 | guint gst_app_sink_get_queue_length (GstAppSink *appsink); 85 | 86 | G_END_DECLS 87 | 88 | #endif 89 | 90 | -------------------------------------------------------------------------------- /opencv/src/opencv/highgui/precomp.cpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #include "_highgui.h" 43 | 44 | -------------------------------------------------------------------------------- /opencv/src/opencv2/calib3d/epnp.h: -------------------------------------------------------------------------------- 1 | #ifndef epnp_h 2 | #define epnp_h 3 | 4 | #include "precomp.hpp" 5 | 6 | class epnp { 7 | public: 8 | epnp(const cv::Mat& cameraMatrix, const cv::Mat& opoints, const cv::Mat& ipoints); 9 | ~epnp(); 10 | 11 | void add_correspondence(const double X, const double Y, const double Z, 12 | const double u, const double v); 13 | 14 | void compute_pose(cv::Mat& R, cv::Mat& t); 15 | private: 16 | template 17 | void init_camera_parameters(const cv::Mat& cameraMatrix) 18 | { 19 | uc = cameraMatrix.at (0, 2); 20 | vc = cameraMatrix.at (1, 2); 21 | fu = cameraMatrix.at (0, 0); 22 | fv = cameraMatrix.at (1, 1); 23 | } 24 | template 25 | void init_points(const cv::Mat& opoints, const cv::Mat& ipoints) 26 | { 27 | for(int i = 0; i < number_of_correspondences; i++) 28 | { 29 | pws[3 * i ] = opoints.at(0,i).x; 30 | pws[3 * i + 1] = opoints.at(0,i).y; 31 | pws[3 * i + 2] = opoints.at(0,i).z; 32 | 33 | us[2 * i ] = ipoints.at(0,i).x*fu + uc; 34 | us[2 * i + 1] = ipoints.at(0,i).y*fv + vc; 35 | } 36 | } 37 | double reprojection_error(const double R[3][3], const double t[3]); 38 | void choose_control_points(void); 39 | void compute_barycentric_coordinates(void); 40 | void fill_M(CvMat * M, const int row, const double * alphas, const double u, const double v); 41 | void compute_ccs(const double * betas, const double * ut); 42 | void compute_pcs(void); 43 | 44 | void solve_for_sign(void); 45 | 46 | void find_betas_approx_1(const CvMat * L_6x10, const CvMat * Rho, double * betas); 47 | void find_betas_approx_2(const CvMat * L_6x10, const CvMat * Rho, double * betas); 48 | void find_betas_approx_3(const CvMat * L_6x10, const CvMat * Rho, double * betas); 49 | void qr_solve(CvMat * A, CvMat * b, CvMat * X); 50 | 51 | double dot(const double * v1, const double * v2); 52 | double dist2(const double * p1, const double * p2); 53 | 54 | void compute_rho(double * rho); 55 | void compute_L_6x10(const double * ut, double * l_6x10); 56 | 57 | void gauss_newton(const CvMat * L_6x10, const CvMat * Rho, double current_betas[4]); 58 | void compute_A_and_b_gauss_newton(const double * l_6x10, const double * rho, 59 | const double cb[4], CvMat * A, CvMat * b); 60 | 61 | double compute_R_and_t(const double * ut, const double * betas, 62 | double R[3][3], double t[3]); 63 | 64 | void estimate_R_and_t(double R[3][3], double t[3]); 65 | 66 | void copy_R_and_t(const double R_dst[3][3], const double t_dst[3], 67 | double R_src[3][3], double t_src[3]); 68 | 69 | 70 | double uc, vc, fu, fv; 71 | 72 | std::vector pws, us, alphas, pcs; 73 | int number_of_correspondences; 74 | 75 | double cws[4][3], ccs[4][3]; 76 | double cws_determinant; 77 | int max_nr; 78 | double * A1, * A2; 79 | }; 80 | 81 | #endif 82 | -------------------------------------------------------------------------------- /opencv/src/opencv2/calib3d/p3p.h: -------------------------------------------------------------------------------- 1 | #ifndef P3P_H 2 | #define P3P_H 3 | 4 | 5 | #include "precomp.hpp" 6 | 7 | class p3p 8 | { 9 | public: 10 | p3p(double fx, double fy, double cx, double cy); 11 | p3p(cv::Mat cameraMatrix); 12 | 13 | bool solve(cv::Mat& R, cv::Mat& tvec, const cv::Mat& opoints, const cv::Mat& ipoints); 14 | int solve(double R[4][3][3], double t[4][3], 15 | double mu0, double mv0, double X0, double Y0, double Z0, 16 | double mu1, double mv1, double X1, double Y1, double Z1, 17 | double mu2, double mv2, double X2, double Y2, double Z2); 18 | bool solve(double R[3][3], double t[3], 19 | double mu0, double mv0, double X0, double Y0, double Z0, 20 | double mu1, double mv1, double X1, double Y1, double Z1, 21 | double mu2, double mv2, double X2, double Y2, double Z2, 22 | double mu3, double mv3, double X3, double Y3, double Z3); 23 | 24 | private: 25 | template 26 | void init_camera_parameters(const cv::Mat& cameraMatrix) 27 | { 28 | cx = cameraMatrix.at (0, 2); 29 | cy = cameraMatrix.at (1, 2); 30 | fx = cameraMatrix.at (0, 0); 31 | fy = cameraMatrix.at (1, 1); 32 | } 33 | template 34 | void extract_points(const cv::Mat& opoints, const cv::Mat& ipoints, std::vector& points) 35 | { 36 | points.clear(); 37 | points.resize(20); 38 | for(int i = 0; i < 4; i++) 39 | { 40 | points[i*5] = ipoints.at(0,i).x*fx + cx; 41 | points[i*5+1] = ipoints.at(0,i).y*fy + cy; 42 | points[i*5+2] = opoints.at(0,i).x; 43 | points[i*5+3] = opoints.at(0,i).y; 44 | points[i*5+4] = opoints.at(0,i).z; 45 | } 46 | } 47 | void init_inverse_parameters(); 48 | int solve_for_lengths(double lengths[4][3], double distances[3], double cosines[3]); 49 | bool align(double M_start[3][3], 50 | double X0, double Y0, double Z0, 51 | double X1, double Y1, double Z1, 52 | double X2, double Y2, double Z2, 53 | double R[3][3], double T[3]); 54 | 55 | bool jacobi_4x4(double * A, double * D, double * U); 56 | 57 | double fx, fy, cx, cy; 58 | double inv_fx, inv_fy, cx_fx, cy_fy; 59 | }; 60 | 61 | #endif // P3P_H 62 | 63 | -------------------------------------------------------------------------------- /opencv/src/opencv2/calib3d/polynom_solver.h: -------------------------------------------------------------------------------- 1 | #ifndef POLYNOM_SOLVER_H 2 | #define POLYNOM_SOLVER_H 3 | 4 | int solve_deg2(double a, double b, double c, double & x1, double & x2); 5 | 6 | int solve_deg3(double a, double b, double c, double d, 7 | double & x0, double & x1, double & x2); 8 | 9 | int solve_deg4(double a, double b, double c, double d, double e, 10 | double & x0, double & x1, double & x2, double & x3); 11 | 12 | #endif // POLYNOM_SOLVER_H 13 | -------------------------------------------------------------------------------- /opencv/src/opencv2/calib3d/precomp.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | #ifndef __OPENCV_PRECOMP_H__ 43 | #define __OPENCV_PRECOMP_H__ 44 | 45 | #ifdef HAVE_CVCONFIG_H 46 | #include "cvconfig.h" 47 | #endif 48 | 49 | #include "opencv2/calib3d/calib3d.hpp" 50 | #include "opencv2/imgproc/imgproc.hpp" 51 | #include "opencv2/imgproc/imgproc_c.h" 52 | #include "opencv2/core/internal.hpp" 53 | #include "opencv2/features2d/features2d.hpp" 54 | #include 55 | 56 | #ifdef HAVE_TEGRA_OPTIMIZATION 57 | #include "opencv2/calib3d/calib3d_tegra.hpp" 58 | #else 59 | #define GET_OPTIMIZED(func) (func) 60 | #endif 61 | 62 | #endif 63 | -------------------------------------------------------------------------------- /opencv/src/opencv2/core/precomp.cpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #include "precomp.hpp" 44 | 45 | /* End of file. */ 46 | -------------------------------------------------------------------------------- /opencv/src/opencv2/features2d/fast_score.hpp: -------------------------------------------------------------------------------- 1 | /* This is FAST corner detector, contributed to OpenCV by the author, Edward Rosten. 2 | Below is the original copyright and the references */ 3 | 4 | /* 5 | Copyright (c) 2006, 2008 Edward Rosten 6 | All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without 9 | modification, are permitted provided that the following conditions 10 | are met: 11 | 12 | *Redistributions of source code must retain the above copyright 13 | notice, this list of conditions and the following disclaimer. 14 | 15 | *Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | 19 | *Neither the name of the University of Cambridge nor the names of 20 | its contributors may be used to endorse or promote products derived 21 | from this software without specific prior written permission. 22 | 23 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 24 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 25 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 26 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 27 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 28 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 29 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 30 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 31 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 32 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 33 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 | */ 35 | 36 | /* 37 | The references are: 38 | * Machine learning for high-speed corner detection, 39 | E. Rosten and T. Drummond, ECCV 2006 40 | * Faster and better: A machine learning approach to corner detection 41 | E. Rosten, R. Porter and T. Drummond, PAMI, 2009 42 | */ 43 | 44 | #ifndef __OPENCV_FEATURES_2D_FAST_HPP__ 45 | #define __OPENCV_FEATURES_2D_FAST_HPP__ 46 | 47 | #ifdef __cplusplus 48 | 49 | #include "precomp.hpp" 50 | 51 | namespace cv 52 | { 53 | 54 | void makeOffsets(int pixel[25], int row_stride, int patternSize); 55 | 56 | template 57 | int cornerScore(const uchar* ptr, const int pixel[], int threshold); 58 | 59 | class FastFeatureDetector2 : public FastFeatureDetector 60 | { 61 | public: 62 | CV_WRAP FastFeatureDetector2( int threshold=10, bool nonmaxSuppression=true); 63 | CV_WRAP FastFeatureDetector2( int threshold, bool nonmaxSuppression, int type); 64 | AlgorithmInfo* info() const; 65 | 66 | protected: 67 | virtual void detectImpl( const Mat& image, vector& keypoints, const Mat& mask=Mat() ) const; 68 | 69 | short type; 70 | }; 71 | 72 | } 73 | 74 | #endif 75 | #endif 76 | -------------------------------------------------------------------------------- /opencv/src/opencv2/features2d/precomp.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_PRECOMP_H__ 44 | #define __OPENCV_PRECOMP_H__ 45 | 46 | #ifdef HAVE_CVCONFIG_H 47 | #include "cvconfig.h" 48 | #endif 49 | 50 | #include "opencv2/features2d/features2d.hpp" 51 | #include "opencv2/imgproc/imgproc.hpp" 52 | #include "opencv2/imgproc/imgproc_c.h" 53 | #include "opencv2/core/internal.hpp" 54 | 55 | #ifdef HAVE_TEGRA_OPTIMIZATION 56 | #include "opencv2/features2d/features2d_tegra.hpp" 57 | #endif 58 | 59 | #endif 60 | -------------------------------------------------------------------------------- /opencv/src/opencv2/flann/flann.cpp: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | * Software License Agreement (BSD License) 3 | * 4 | * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. 5 | * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions 9 | * are met: 10 | * 11 | * 1. Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 2. Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in the 15 | * documentation and/or other materials provided with the distribution. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | *************************************************************************/ 28 | 29 | #include "precomp.hpp" 30 | #include "opencv2/flann/flann.hpp" 31 | 32 | namespace cvflann 33 | { 34 | /** Global variable indicating the distance metric to be used. 35 | * \deprecated Provided for backward compatibility 36 | */ 37 | flann_distance_t flann_distance_type_ = FLANN_DIST_L2; 38 | flann_distance_t flann_distance_type() { return flann_distance_type_; } 39 | 40 | /** 41 | * Set distance type to used 42 | * \deprecated 43 | */ 44 | void set_distance_type(flann_distance_t distance_type, int /*order*/) 45 | { 46 | printf("[WARNING] The cvflann::set_distance_type function is deperecated, " 47 | "use cv::flann::GenericIndex instead.\n"); 48 | if (distance_type != FLANN_DIST_L1 && distance_type != FLANN_DIST_L2) { 49 | printf("[ERROR] cvflann::set_distance_type only provides backwards compatibility " 50 | "for the L1 and L2 distances. " 51 | "For other distance types you must use cv::flann::GenericIndex\n"); 52 | } 53 | flann_distance_type_ = distance_type; 54 | } 55 | 56 | void dummyfunc() {} 57 | } -------------------------------------------------------------------------------- /opencv/src/opencv2/flann/precomp.hpp: -------------------------------------------------------------------------------- 1 | #ifndef _OPENCV_FLANN_PRECOMP_HPP_ 2 | #define _OPENCV_FLANN_PRECOMP_HPP_ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | #ifdef HAVE_CVCONFIG_H 9 | # include "cvconfig.h" 10 | #endif 11 | #include "opencv2/core/core.hpp" 12 | #include "opencv2/core/internal.hpp" 13 | 14 | #include "opencv2/flann/miniflann.hpp" 15 | #include "opencv2/flann/dist.h" 16 | #include "opencv2/flann/index_testing.h" 17 | #include "opencv2/flann/params.h" 18 | #include "opencv2/flann/saving.h" 19 | #include "opencv2/flann/general.h" 20 | #include "opencv2/flann/dummy.h" 21 | 22 | // index types 23 | #include "opencv2/flann/all_indices.h" 24 | #include "opencv2/flann/flann_base.hpp" 25 | 26 | #endif 27 | 28 | -------------------------------------------------------------------------------- /opencv/src/opencv2/highgui/grfmt_bmp.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef _GRFMT_BMP_H_ 44 | #define _GRFMT_BMP_H_ 45 | 46 | #include "grfmt_base.hpp" 47 | 48 | namespace cv 49 | { 50 | 51 | enum BmpCompression 52 | { 53 | BMP_RGB = 0, 54 | BMP_RLE8 = 1, 55 | BMP_RLE4 = 2, 56 | BMP_BITFIELDS = 3 57 | }; 58 | 59 | 60 | // Windows Bitmap reader 61 | class BmpDecoder : public BaseImageDecoder 62 | { 63 | public: 64 | 65 | BmpDecoder(); 66 | ~BmpDecoder(); 67 | 68 | bool readData( Mat& img ); 69 | bool readHeader(); 70 | void close(); 71 | 72 | ImageDecoder newDecoder() const; 73 | 74 | protected: 75 | 76 | RLByteStream m_strm; 77 | PaletteEntry m_palette[256]; 78 | int m_origin; 79 | int m_bpp; 80 | int m_offset; 81 | BmpCompression m_rle_code; 82 | }; 83 | 84 | 85 | // ... writer 86 | class BmpEncoder : public BaseImageEncoder 87 | { 88 | public: 89 | BmpEncoder(); 90 | ~BmpEncoder(); 91 | 92 | bool write( const Mat& img, const vector& params ); 93 | 94 | ImageEncoder newEncoder() const; 95 | }; 96 | 97 | } 98 | 99 | #endif/*_GRFMT_BMP_H_*/ 100 | -------------------------------------------------------------------------------- /opencv/src/opencv2/highgui/grfmt_imageio.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * grfmt_imageio.h 3 | * 4 | * 5 | * Created by Morgan Conbere on 5/17/07. 6 | * 7 | */ 8 | 9 | #ifndef _GRFMT_IMAGEIO_H_ 10 | #define _GRFMT_IMAGEIO_H_ 11 | 12 | #ifdef HAVE_IMAGEIO 13 | 14 | #include "grfmt_base.hpp" 15 | #include 16 | 17 | #if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR 18 | 19 | #include 20 | #include 21 | 22 | #else 23 | 24 | #include 25 | 26 | #endif 27 | 28 | namespace cv 29 | { 30 | 31 | class ImageIODecoder : public BaseImageDecoder 32 | { 33 | public: 34 | 35 | ImageIODecoder(); 36 | ~ImageIODecoder(); 37 | 38 | bool readData( Mat& img ); 39 | bool readHeader(); 40 | void close(); 41 | 42 | size_t signatureLength() const; 43 | bool checkSignature( const string& signature ) const; 44 | 45 | ImageDecoder newDecoder() const; 46 | 47 | protected: 48 | 49 | CGImageRef imageRef; 50 | }; 51 | 52 | class ImageIOEncoder : public BaseImageEncoder 53 | { 54 | public: 55 | ImageIOEncoder(); 56 | ~ImageIOEncoder(); 57 | 58 | bool write( const Mat& img, const vector& params ); 59 | 60 | ImageEncoder newEncoder() const; 61 | }; 62 | 63 | } 64 | 65 | #endif/*HAVE_IMAGEIO*/ 66 | 67 | #endif/*_GRFMT_IMAGEIO_H_*/ 68 | -------------------------------------------------------------------------------- /opencv/src/opencv2/highgui/grfmt_jpeg.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef _GRFMT_JPEG_H_ 44 | #define _GRFMT_JPEG_H_ 45 | 46 | #include "grfmt_base.hpp" 47 | #include "bitstrm.hpp" 48 | 49 | #ifdef HAVE_JPEG 50 | 51 | // IJG-based Jpeg codec 52 | 53 | namespace cv 54 | { 55 | 56 | class JpegDecoder : public BaseImageDecoder 57 | { 58 | public: 59 | 60 | JpegDecoder(); 61 | virtual ~JpegDecoder(); 62 | 63 | bool readData( Mat& img ); 64 | bool readHeader(); 65 | void close(); 66 | 67 | ImageDecoder newDecoder() const; 68 | 69 | protected: 70 | 71 | FILE* m_f; 72 | void* m_state; 73 | }; 74 | 75 | 76 | class JpegEncoder : public BaseImageEncoder 77 | { 78 | public: 79 | JpegEncoder(); 80 | virtual ~JpegEncoder(); 81 | 82 | bool write( const Mat& img, const vector& params ); 83 | ImageEncoder newEncoder() const; 84 | }; 85 | 86 | } 87 | 88 | #endif 89 | 90 | #endif/*_GRFMT_JPEG_H_*/ 91 | -------------------------------------------------------------------------------- /opencv/src/opencv2/highgui/grfmt_jpeg2000.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef _GRFMT_JASPER_H_ 44 | #define _GRFMT_JASPER_H_ 45 | 46 | #ifdef HAVE_JASPER 47 | 48 | #include "grfmt_base.hpp" 49 | 50 | namespace cv 51 | { 52 | 53 | class Jpeg2KDecoder : public BaseImageDecoder 54 | { 55 | public: 56 | 57 | Jpeg2KDecoder(); 58 | virtual ~Jpeg2KDecoder(); 59 | 60 | bool readData( Mat& img ); 61 | bool readHeader(); 62 | void close(); 63 | ImageDecoder newDecoder() const; 64 | 65 | protected: 66 | bool readComponent8u( uchar *data, void *buffer, int step, int cmpt, 67 | int maxval, int offset, int ncmpts ); 68 | bool readComponent16u( unsigned short *data, void *buffer, int step, int cmpt, 69 | int maxval, int offset, int ncmpts ); 70 | 71 | void *m_stream; 72 | void *m_image; 73 | }; 74 | 75 | 76 | class Jpeg2KEncoder : public BaseImageEncoder 77 | { 78 | public: 79 | Jpeg2KEncoder(); 80 | virtual ~Jpeg2KEncoder(); 81 | 82 | bool isFormatSupported( int depth ) const; 83 | bool write( const Mat& img, const vector& params ); 84 | ImageEncoder newEncoder() const; 85 | 86 | protected: 87 | bool writeComponent8u( void *img, const Mat& _img ); 88 | bool writeComponent16u( void *img, const Mat& _img ); 89 | }; 90 | 91 | } 92 | 93 | #endif 94 | 95 | #endif/*_GRFMT_JASPER_H_*/ 96 | -------------------------------------------------------------------------------- /opencv/src/opencv2/highgui/grfmt_pxm.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef _GRFMT_PxM_H_ 44 | #define _GRFMT_PxM_H_ 45 | 46 | #include "grfmt_base.hpp" 47 | #include "bitstrm.hpp" 48 | 49 | namespace cv 50 | { 51 | 52 | class PxMDecoder : public BaseImageDecoder 53 | { 54 | public: 55 | 56 | PxMDecoder(); 57 | virtual ~PxMDecoder(); 58 | 59 | bool readData( Mat& img ); 60 | bool readHeader(); 61 | void close(); 62 | 63 | size_t signatureLength() const; 64 | bool checkSignature( const string& signature ) const; 65 | ImageDecoder newDecoder() const; 66 | 67 | protected: 68 | 69 | RLByteStream m_strm; 70 | PaletteEntry m_palette[256]; 71 | int m_bpp; 72 | int m_offset; 73 | bool m_binary; 74 | int m_maxval; 75 | }; 76 | 77 | 78 | class PxMEncoder : public BaseImageEncoder 79 | { 80 | public: 81 | PxMEncoder(); 82 | virtual ~PxMEncoder(); 83 | 84 | bool isFormatSupported( int depth ) const; 85 | bool write( const Mat& img, const vector& params ); 86 | 87 | ImageEncoder newEncoder() const; 88 | }; 89 | 90 | } 91 | 92 | #endif/*_GRFMT_PxM_H_*/ 93 | -------------------------------------------------------------------------------- /opencv/src/opencv2/highgui/grfmts.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef _GRFMTS_H_ 43 | #define _GRFMTS_H_ 44 | 45 | #include "grfmt_base.hpp" 46 | #include "grfmt_imageio.hpp" 47 | #include "grfmt_bmp.hpp" 48 | #include "grfmt_sunras.hpp" 49 | #include "grfmt_jpeg.hpp" 50 | #include "grfmt_pxm.hpp" 51 | #include "grfmt_tiff.hpp" 52 | #include "grfmt_png.hpp" 53 | #include "grfmt_jpeg2000.hpp" 54 | #include "grfmt_exr.hpp" 55 | 56 | #endif/*_GRFMTS_H_*/ 57 | -------------------------------------------------------------------------------- /opencv/src/opencv2/highgui/precomp.cpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #include "precomp.hpp" 43 | 44 | -------------------------------------------------------------------------------- /opencv/src/opencv2/highgui/window_QT.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | files_Qt/Milky/48/28.png 4 | files_Qt/Milky/48/23.png 5 | files_Qt/Milky/48/19.png 6 | files_Qt/Milky/48/24.png 7 | files_Qt/Milky/48/27.png 8 | files_Qt/Milky/48/61.png 9 | files_Qt/Milky/48/106.png 10 | files_Qt/Milky/48/107.png 11 | files_Qt/Milky/48/7.png 12 | files_Qt/Milky/48/38.png 13 | files_Qt/stylesheet_trackbar.qss 14 | 15 | 16 | -------------------------------------------------------------------------------- /opencv/src/opencv2/imgproc/_geom.h: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #ifndef _CV_GEOM_H_ 43 | #define _CV_GEOM_H_ 44 | 45 | /* Finds distance between two points */ 46 | CV_INLINE float icvDistanceL2_32f( CvPoint2D32f pt1, CvPoint2D32f pt2 ) 47 | { 48 | float dx = pt2.x - pt1.x; 49 | float dy = pt2.y - pt1.y; 50 | 51 | return std::sqrt( dx*dx + dy*dy ); 52 | } 53 | 54 | 55 | int icvIntersectLines( double x1, double dx1, double y1, double dy1, 56 | double x2, double dx2, double y2, double dy2, 57 | double* t2 ); 58 | 59 | 60 | void icvCreateCenterNormalLine( CvSubdiv2DEdge edge, double* a, double* b, double* c ); 61 | 62 | void icvIntersectLines3( double* a0, double* b0, double* c0, 63 | double* a1, double* b1, double* c1, 64 | CvPoint2D32f* point ); 65 | 66 | 67 | /* curvature: 0 - 1-curvature, 1 - k-cosine curvature. */ 68 | CvSeq* icvApproximateChainTC89( CvChain* chain, int header_size, CvMemStorage* storage, int method ); 69 | 70 | #endif /*_IPCVGEOM_H_*/ 71 | 72 | /* End of file. */ 73 | -------------------------------------------------------------------------------- /opencv/src/opencv2/legacy/_featuretree.h: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2009, Xavier Delacour, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | // 2009-01-09, Xavier Delacour 43 | 44 | #ifndef __opencv_featuretree_h__ 45 | #define __opencv_featuretree_h__ 46 | 47 | struct CvFeatureTree { 48 | CvFeatureTree(const CvFeatureTree& x); 49 | CvFeatureTree& operator= (const CvFeatureTree& rhs); 50 | 51 | CvFeatureTree() {} 52 | virtual ~CvFeatureTree() {} 53 | virtual void FindFeatures(const CvMat* d, int k, int emax, CvMat* results, CvMat* dist) = 0; 54 | virtual int FindOrthoRange(CvMat* /*bounds_min*/, CvMat* /*bounds_max*/,CvMat* /*results*/) { 55 | return 0; 56 | } 57 | }; 58 | 59 | #endif // __cv_featuretree_h__ 60 | 61 | // Local Variables: 62 | // mode:C++ 63 | // End: 64 | -------------------------------------------------------------------------------- /opencv/src/opencv2/legacy/auxutils.cpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #include "precomp.hpp" 43 | 44 | /* End of file. */ 45 | -------------------------------------------------------------------------------- /opencv/src/opencv2/legacy/facedetection.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cybertk/opencv/4e9e6d1300aa3603bcc74a133a2844a1237437fa/opencv/src/opencv2/legacy/facedetection.h -------------------------------------------------------------------------------- /opencv/src/opencv2/legacy/facetemplate.cpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | /////////////////////////////////////////////// 42 | //// Created by Khudyakov V.A. bober@gorodok.net 43 | ////////////////////////////////////////////// 44 | 45 | #include "precomp.hpp" 46 | #include "_facedetection.h" 47 | 48 | ///class FaceFeature 49 | FaceFeature::FaceFeature(double dWeight,void * lpContour,bool bIsFeature) 50 | { 51 | m_lpContour = lpContour; 52 | m_dWeight = dWeight; 53 | m_bIsFaceFeature = bIsFeature; 54 | }//FaceFeature::FaceFeature(long lWeight,void * lpContour) 55 | 56 | FaceFeature::~FaceFeature() 57 | { 58 | if (m_lpContour) 59 | delete (char*)m_lpContour; 60 | }//FaceFeature::~FaceFeature() 61 | 62 | FaceFeature::FaceFeature() 63 | { 64 | m_lpContour = NULL; 65 | m_dWeight = 0; 66 | m_bIsFaceFeature = false; 67 | } 68 | 69 | 70 | ////class FaceTemplate 71 | 72 | FaceTemplate::~FaceTemplate() 73 | { 74 | delete [] m_lpFeaturesList; 75 | }//FaceTemplate::~FaceTemplate() 76 | 77 | 78 | ///// 79 | //class RFaceTemplate 80 | ///// 81 | 82 | 83 | MouthFaceTemplate::~MouthFaceTemplate() 84 | { 85 | 86 | }//RFaceTemplate::~RFaceTemplate() 87 | -------------------------------------------------------------------------------- /opencv/src/opencv2/legacy/featuretree.cpp: -------------------------------------------------------------------------------- 1 | //M*////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #include "precomp.hpp" 43 | #include "_featuretree.h" 44 | 45 | void cvReleaseFeatureTree(CvFeatureTree* tr) 46 | { 47 | delete tr; 48 | } 49 | 50 | // desc is m x d set of candidate points. 51 | // results is m x k set of row indices of matching points. 52 | // dist is m x k distance to matching points. 53 | void cvFindFeatures(CvFeatureTree* tr, const CvMat* desc, 54 | CvMat* results, CvMat* dist, int k, int emax) 55 | { 56 | tr->FindFeatures(desc, k, emax, results, dist); 57 | } 58 | 59 | int cvFindFeaturesBoxed(CvFeatureTree* tr, 60 | CvMat* bounds_min, CvMat* bounds_max, 61 | CvMat* results) 62 | { 63 | return tr->FindOrthoRange(bounds_min, bounds_max, results); 64 | } 65 | -------------------------------------------------------------------------------- /opencv/src/opencv2/legacy/findface.cpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | /////////////////////////////////////////////// 42 | //// Created by Khudyakov V.A. bober@gorodok.net 43 | ////////////////////////////////////////////// 44 | 45 | #include "precomp.hpp" 46 | #include "_facedetection.h" 47 | 48 | CvSeq * cvFindFace(IplImage * Image,CvMemStorage* lpStorage) 49 | { 50 | FaceDetection FD; 51 | FD.SetBoosting(false); 52 | FD.FindFace(Image); 53 | CvSeq * lpSeq = cvCreateSeq(0,sizeof(*lpSeq),sizeof(CvFace),lpStorage); 54 | FD.CreateResults(lpSeq); 55 | return lpSeq; 56 | }//cvFindFace(IplImage * Image) 57 | 58 | CvSeq * cvPostBoostingFindFace(IplImage * Image,CvMemStorage* lpStorage) 59 | { 60 | FaceDetection FD; 61 | FD.SetBoosting(true); 62 | FD.FindFace(Image); 63 | CvSeq * lpSeq = cvCreateSeq(0,sizeof(*lpSeq),sizeof(CvFace),lpStorage); 64 | FD.CreateResults(lpSeq); 65 | 66 | return lpSeq; 67 | }//cvPostBoostingFindFace(IplImage * Image) 68 | 69 | -------------------------------------------------------------------------------- /opencv/src/opencv2/legacy/precomp.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | #ifndef __OPENCV_PRECOMP_H__ 42 | #define __OPENCV_PRECOMP_H__ 43 | 44 | #ifdef HAVE_CVCONFIG_H 45 | #include "cvconfig.h" 46 | #endif 47 | 48 | #include "opencv2/legacy/legacy.hpp" 49 | 50 | #include "opencv2/core/internal.hpp" 51 | #include "opencv2/video/tracking.hpp" 52 | #include "opencv2/video/background_segm.hpp" 53 | 54 | #include "opencv2/legacy/blobtrack.hpp" 55 | #include "opencv2/legacy/compat.hpp" 56 | 57 | #include "_matrix.h" 58 | 59 | typedef unsigned short ushort; 60 | 61 | CV_INLINE bool operator == (CvSize size1, CvSize size2 ); 62 | CV_INLINE bool operator == (CvSize size1, CvSize size2 ) 63 | { 64 | return size1.width == size2.width && size1.height == size2.height; 65 | } 66 | 67 | CV_INLINE bool operator != (CvSize size1, CvSize size2 ); 68 | CV_INLINE bool operator != (CvSize size1, CvSize size2 ) 69 | { 70 | return size1.width != size2.width || size1.height != size2.height; 71 | } 72 | 73 | #endif /* __CVAUX_H__ */ 74 | -------------------------------------------------------------------------------- /opencv/src/opencv2/legacy/video.cpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // Intel License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000, Intel Corporation, all rights reserved. 14 | // Third party copyrights are property of their respective owners. 15 | // 16 | // Redistribution and use in source and binary forms, with or without modification, 17 | // are permitted provided that the following conditions are met: 18 | // 19 | // * Redistribution's of source code must retain the above copyright notice, 20 | // this list of conditions and the following disclaimer. 21 | // 22 | // * Redistribution's in binary form must reproduce the above copyright notice, 23 | // this list of conditions and the following disclaimer in the documentation 24 | // and/or other materials provided with the distribution. 25 | // 26 | // * The name of Intel Corporation may not be used to endorse or promote products 27 | // derived from this software without specific prior written permission. 28 | // 29 | // This software is provided by the copyright holders and contributors "as is" and 30 | // any express or implied warranties, including, but not limited to, the implied 31 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 32 | // In no event shall the Intel Corporation or contributors be liable for any direct, 33 | // indirect, incidental, special, exemplary, or consequential damages 34 | // (including, but not limited to, procurement of substitute goods or services; 35 | // loss of use, data, or profits; or business interruption) however caused 36 | // and on any theory of liability, whether in contract, strict liability, 37 | // or tort (including negligence or otherwise) arising in any way out of 38 | // the use of this software, even if advised of the possibility of such damage. 39 | // 40 | //M*/ 41 | 42 | #include "precomp.hpp" 43 | 44 | CV_IMPL void 45 | cvDeInterlace( const CvArr* framearr, CvArr* fieldEven, CvArr* fieldOdd ) 46 | { 47 | CV_FUNCNAME("cvDeInterlace"); 48 | 49 | __BEGIN__; 50 | 51 | CvMat frame_stub, *frame = (CvMat*)framearr; 52 | CvMat even_stub, *even = (CvMat*)fieldEven; 53 | CvMat odd_stub, *odd = (CvMat*)fieldOdd; 54 | CvSize size; 55 | int y; 56 | 57 | CV_CALL( frame = cvGetMat( frame, &frame_stub )); 58 | CV_CALL( even = cvGetMat( even, &even_stub )); 59 | CV_CALL( odd = cvGetMat( odd, &odd_stub )); 60 | 61 | if( !CV_ARE_TYPES_EQ( frame, even ) || !CV_ARE_TYPES_EQ( frame, odd )) 62 | CV_ERROR( CV_StsUnmatchedFormats, "All the input images must have the same type" ); 63 | 64 | if( frame->cols != even->cols || frame->cols != odd->cols || 65 | frame->rows != even->rows*2 || odd->rows != even->rows ) 66 | CV_ERROR( CV_StsUnmatchedSizes, "Uncorrelated sizes of the input image and output fields" ); 67 | 68 | size = cvGetMatSize( even ); 69 | size.width *= CV_ELEM_SIZE( even->type ); 70 | 71 | for( y = 0; y < size.height; y++ ) 72 | { 73 | memcpy( even->data.ptr + even->step*y, 74 | frame->data.ptr + frame->step*y*2, size.width ); 75 | memcpy( odd->data.ptr + even->step*y, 76 | frame->data.ptr + frame->step*(y*2+1), size.width ); 77 | } 78 | 79 | __END__; 80 | } 81 | 82 | /* End of file. */ 83 | 84 | 85 | -------------------------------------------------------------------------------- /opencv/src/opencv2/objdetect/_lsvm_error.h: -------------------------------------------------------------------------------- 1 | #ifndef LSVM_ERROR 2 | #define LSVM_ERROR 3 | 4 | #define LATENT_SVM_OK 0 5 | #define LATENT_SVM_MEM_NULL 2 6 | #define DISTANCE_TRANSFORM_OK 1 7 | #define DISTANCE_TRANSFORM_GET_INTERSECTION_ERROR -1 8 | #define DISTANCE_TRANSFORM_ERROR -2 9 | #define DISTANCE_TRANSFORM_EQUAL_POINTS -3 10 | #define LATENT_SVM_GET_FEATURE_PYRAMID_FAILED -4 11 | #define LATENT_SVM_SEARCH_OBJECT_FAILED -5 12 | #define LATENT_SVM_FAILED_SUPERPOSITION -6 13 | #define FILTER_OUT_OF_BOUNDARIES -7 14 | #define LATENT_SVM_TBB_SCHEDULE_CREATION_FAILED -8 15 | #define LATENT_SVM_TBB_NUMTHREADS_NOT_CORRECT -9 16 | #define FFT_OK 2 17 | #define FFT_ERROR -10 18 | #define LSVM_PARSER_FILE_NOT_FOUND -11 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /opencv/src/opencv2/objdetect/_lsvm_fft.h: -------------------------------------------------------------------------------- 1 | #ifndef _LSVM_FFT_H_ 2 | #define _LSVM_FFT_H_ 3 | 4 | #include "_lsvm_types.h" 5 | #include "_lsvm_error.h" 6 | #include 7 | 8 | /* 9 | // 1-dimensional FFT 10 | // 11 | // API 12 | // int fft(float *x_in, float *x_out, int n, int shift); 13 | // INPUT 14 | // x_in - input signal 15 | // n - number of elements for searching Fourier image 16 | // shift - shift between input elements 17 | // OUTPUT 18 | // x_out - output signal (contains 2n elements in order 19 | Re(x_in[0]), Im(x_in[0]), Re(x_in[1]), Im(x_in[1]) and etc.) 20 | // RESULT 21 | // Error status 22 | */ 23 | int fft(float *x_in, float *x_out, int n, int shift); 24 | 25 | /* 26 | // Inverse 1-dimensional FFT 27 | // 28 | // API 29 | // int fftInverse(float *x_in, float *x_out, int n, int shift); 30 | // INPUT 31 | // x_in - Fourier image of 1d input signal(contains 2n elements 32 | in order Re(x_in[0]), Im(x_in[0]), 33 | Re(x_in[1]), Im(x_in[1]) and etc.) 34 | // n - number of elements for searching counter FFT image 35 | // shift - shift between input elements 36 | // OUTPUT 37 | // x_in - input signal (contains n elements) 38 | // RESULT 39 | // Error status 40 | */ 41 | int fftInverse(float *x_in, float *x_out, int n, int shift); 42 | 43 | /* 44 | // 2-dimensional FFT 45 | // 46 | // API 47 | // int fft2d(float *x_in, float *x_out, int numRows, int numColls); 48 | // INPUT 49 | // x_in - input signal (matrix, launched by rows) 50 | // numRows - number of rows 51 | // numColls - number of collumns 52 | // OUTPUT 53 | // x_out - output signal (contains (2 * numRows * numColls) elements 54 | in order Re(x_in[0][0]), Im(x_in[0][0]), 55 | Re(x_in[0][1]), Im(x_in[0][1]) and etc.) 56 | // RESULT 57 | // Error status 58 | */ 59 | int fft2d(float *x_in, float *x_out, int numRows, int numColls); 60 | 61 | /* 62 | // Inverse 2-dimensional FFT 63 | // 64 | // API 65 | // int fftInverse2d(float *x_in, float *x_out, int numRows, int numColls); 66 | // INPUT 67 | // x_in - Fourier image of matrix (contains (2 * numRows * numColls) 68 | elements in order Re(x_in[0][0]), Im(x_in[0][0]), 69 | Re(x_in[0][1]), Im(x_in[0][1]) and etc.) 70 | // numRows - number of rows 71 | // numColls - number of collumns 72 | // OUTPUT 73 | // x_out - initial signal (matrix, launched by rows) 74 | // RESULT 75 | // Error status 76 | */ 77 | int fftInverse2d(float *x_in, float *x_out, int numRows, int numColls); 78 | 79 | #endif 80 | -------------------------------------------------------------------------------- /opencv/src/opencv2/objdetect/_lsvm_resizeimg.h: -------------------------------------------------------------------------------- 1 | #ifndef _LSVM_RESIZEIMG_H_ 2 | #define _LSVM_RESIZEIMG_H_ 3 | 4 | #include "_lsvm_types.h" 5 | 6 | IplImage * resize_opencv (IplImage * img, float scale); 7 | IplImage * resize_article_dp1(IplImage * img, float scale, const int k); 8 | IplImage * resize_article_dp(IplImage * img, float scale, const int k); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /opencv/src/opencv2/objdetect/_lsvm_routine.h: -------------------------------------------------------------------------------- 1 | #ifndef _LSVM_ROUTINE_H_ 2 | #define _LSVM_ROUTINE_H_ 3 | 4 | #include "_lsvm_types.h" 5 | #include "_lsvm_error.h" 6 | 7 | 8 | ////////////////////////////////////////////////////////////// 9 | // Memory management routines 10 | // All paramaters names correspond to previous data structures description 11 | // All "alloc" functions return allocated memory for 1 object 12 | // with all fields including arrays 13 | // Error status is return value 14 | ////////////////////////////////////////////////////////////// 15 | int allocFilterObject(CvLSVMFilterObject **obj, const int sizeX, const int sizeY, 16 | const int p); 17 | int freeFilterObject (CvLSVMFilterObject **obj); 18 | 19 | int allocFeatureMapObject(CvLSVMFeatureMap **obj, const int sizeX, const int sizeY, 20 | const int p); 21 | int freeFeatureMapObject (CvLSVMFeatureMap **obj); 22 | 23 | #ifdef __cplusplus 24 | extern "C" 25 | #endif 26 | int allocFeaturePyramidObject(CvLSVMFeaturePyramid **obj, 27 | const int countLevel); 28 | 29 | #ifdef __cplusplus 30 | extern "C" 31 | #endif 32 | int freeFeaturePyramidObject (CvLSVMFeaturePyramid **obj); 33 | int allocFFTImage(CvLSVMFftImage **image, int p, int dimX, int dimY); 34 | int freeFFTImage(CvLSVMFftImage **image); 35 | #endif 36 | -------------------------------------------------------------------------------- /opencv/src/opencv2/objdetect/_lsvm_tbbversion.h: -------------------------------------------------------------------------------- 1 | #ifndef _LSVM_TBBVERSION_H 2 | #define _LSVM_TBBVERSION_H 3 | 4 | #include "_lsvm_matching.h" 5 | 6 | /* 7 | // Computation score function using TBB tasks 8 | // 9 | // API 10 | // int tbbTasksThresholdFunctionalScore(const CvLSVMFilterObject **filters, const int n, 11 | const CvLSVMFeaturePyramid *H, const float b, 12 | const int maxXBorder, const int maxYBorder, 13 | const float scoreThreshold, 14 | int *kLevels, int **procLevels, 15 | const int threadsNum, 16 | float **score, CvPoint ***points, 17 | int *kPoints, 18 | CvPoint ****partsDisplacement); 19 | // INPUT 20 | // filters - the set of filters (the first element is root filter, 21 | the other - part filters) 22 | // n - the number of part filters 23 | // H - feature pyramid 24 | // b - linear term of the score function 25 | // maxXBorder - the largest root filter size (X-direction) 26 | // maxYBorder - the largest root filter size (Y-direction) 27 | // scoreThreshold - score threshold 28 | // kLevels - array that contains number of levels processed 29 | by each thread 30 | // procLevels - array that contains lists of levels processed 31 | by each thread 32 | // threadsNum - the number of created threads 33 | // OUTPUT 34 | // score - score function values that exceed threshold 35 | // points - the set of root filter positions (in the block space) 36 | // kPoints - number of root filter positions 37 | // partsDisplacement - displacement of part filters (in the block space) 38 | // RESULT 39 | // 40 | */ 41 | int tbbTasksThresholdFunctionalScore(const CvLSVMFilterObject **filters, const int n, 42 | const CvLSVMFeaturePyramid *H, const float b, 43 | const int maxXBorder, const int maxYBorder, 44 | const float scoreThreshold, 45 | int *kLevels, int **procLevels, 46 | const int threadsNum, 47 | float **score, CvPoint ***points, 48 | int *kPoints, 49 | CvPoint ****partsDisplacement); 50 | 51 | #endif -------------------------------------------------------------------------------- /opencv/src/opencv2/objdetect/_lsvm_types.h: -------------------------------------------------------------------------------- 1 | #ifndef SVM_TYPE 2 | #define SVM_TYPE 3 | 4 | #include "float.h" 5 | 6 | //#define FFT_CONV 7 | 8 | #define PI CV_PI 9 | 10 | #define EPS 0.000001 11 | 12 | #define F_MAX FLT_MAX 13 | #define F_MIN -FLT_MAX 14 | 15 | // The number of elements in bin 16 | // The number of sectors in gradient histogram building 17 | #define NUM_SECTOR 9 18 | 19 | // The number of levels in image resize procedure 20 | // We need Lambda levels to resize image twice 21 | #define LAMBDA 10 22 | 23 | // Block size. Used in feature pyramid building procedure 24 | #define SIDE_LENGTH 8 25 | 26 | #define VAL_OF_TRUNCATE 0.2f 27 | 28 | ////////////////////////////////////////////////////////////// 29 | // main data structures // 30 | ////////////////////////////////////////////////////////////// 31 | 32 | // DataType: STRUCT featureMap 33 | // FEATURE MAP DESCRIPTION 34 | // Rectangular map (sizeX x sizeY), 35 | // every cell stores feature vector (dimension = numFeatures) 36 | // map - matrix of feature vectors 37 | // to set and get feature vectors (i,j) 38 | // used formula map[(j * sizeX + i) * p + k], where 39 | // k - component of feature vector in cell (i, j) 40 | typedef struct{ 41 | int sizeX; 42 | int sizeY; 43 | int numFeatures; 44 | float *map; 45 | } CvLSVMFeatureMap; 46 | 47 | // DataType: STRUCT featurePyramid 48 | // 49 | // numLevels - number of levels in the feature pyramid 50 | // pyramid - array of pointers to feature map at different levels 51 | typedef struct{ 52 | int numLevels; 53 | CvLSVMFeatureMap **pyramid; 54 | } CvLSVMFeaturePyramid; 55 | 56 | // DataType: STRUCT filterDisposition 57 | // The structure stores preliminary results in optimization process 58 | // with objective function D 59 | // 60 | // x - array with X coordinates of optimization problems solutions 61 | // y - array with Y coordinates of optimization problems solutions 62 | // score - array with optimal objective values 63 | typedef struct{ 64 | float *score; 65 | int *x; 66 | int *y; 67 | } CvLSVMFilterDisposition; 68 | 69 | // DataType: STRUCT fftImage 70 | // The structure stores FFT image 71 | // 72 | // numFeatures - number of channels 73 | // x - array of FFT images for 2d signals 74 | // n - number of rows 75 | // m - number of collums 76 | typedef struct{ 77 | int numFeatures; 78 | int dimX; 79 | int dimY; 80 | float **channels; 81 | } CvLSVMFftImage; 82 | 83 | #endif 84 | -------------------------------------------------------------------------------- /opencv/src/opencv2/objdetect/_lsvmparser.h: -------------------------------------------------------------------------------- 1 | #ifndef LSVM_PARSER 2 | #define LSVM_PARSER 3 | 4 | #include "_lsvm_types.h" 5 | 6 | #define MODEL 1 7 | #define P 2 8 | #define COMP 3 9 | #define SCORE 4 10 | #define RFILTER 100 11 | #define PFILTERs 101 12 | #define PFILTER 200 13 | #define SIZEX 150 14 | #define SIZEY 151 15 | #define WEIGHTS 152 16 | #define TAGV 300 17 | #define Vx 350 18 | #define Vy 351 19 | #define TAGD 400 20 | #define Dx 451 21 | #define Dy 452 22 | #define Dxx 453 23 | #define Dyy 454 24 | #define BTAG 500 25 | 26 | #define STEP_END 1000 27 | 28 | #define EMODEL (STEP_END + MODEL) 29 | #define EP (STEP_END + P) 30 | #define ECOMP (STEP_END + COMP) 31 | #define ESCORE (STEP_END + SCORE) 32 | #define ERFILTER (STEP_END + RFILTER) 33 | #define EPFILTERs (STEP_END + PFILTERs) 34 | #define EPFILTER (STEP_END + PFILTER) 35 | #define ESIZEX (STEP_END + SIZEX) 36 | #define ESIZEY (STEP_END + SIZEY) 37 | #define EWEIGHTS (STEP_END + WEIGHTS) 38 | #define ETAGV (STEP_END + TAGV) 39 | #define EVx (STEP_END + Vx) 40 | #define EVy (STEP_END + Vy) 41 | #define ETAGD (STEP_END + TAGD) 42 | #define EDx (STEP_END + Dx) 43 | #define EDy (STEP_END + Dy) 44 | #define EDxx (STEP_END + Dxx) 45 | #define EDyy (STEP_END + Dyy) 46 | #define EBTAG (STEP_END + BTAG) 47 | 48 | //extern "C" { 49 | int LSVMparser(const char * filename, CvLSVMFilterObject *** model, int *last, int *max, 50 | int **comp, float **b, int *count, float * score); 51 | #ifdef __cplusplus 52 | extern "C" 53 | #endif 54 | int loadModel( 55 | 56 | const char *modelPath, 57 | 58 | CvLSVMFilterObject ***filters, 59 | int *kFilters, 60 | int *kComponents, 61 | int **kPartFilters, 62 | float **b, 63 | float *scoreThreshold); 64 | //}; 65 | #endif 66 | -------------------------------------------------------------------------------- /opencv/src/opencv2/objdetect/objdetect_init.cpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #include "precomp.hpp" 44 | -------------------------------------------------------------------------------- /opencv/src/opencv2/objdetect/precomp.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_PRECOMP_H__ 44 | #define __OPENCV_PRECOMP_H__ 45 | 46 | #ifdef HAVE_CVCONFIG_H 47 | #include "cvconfig.h" 48 | #endif 49 | 50 | #include "opencv2/objdetect/objdetect.hpp" 51 | #include "opencv2/imgproc/imgproc.hpp" 52 | #include "opencv2/imgproc/imgproc_c.h" 53 | #include "opencv2/core/core_c.h" 54 | #include "opencv2/core/internal.hpp" 55 | 56 | #include "opencv2/opencv_modules.hpp" 57 | #ifdef HAVE_OPENCV_HIGHGUI 58 | # include "opencv2/highgui/highgui.hpp" 59 | #endif 60 | 61 | #ifdef HAVE_TEGRA_OPTIMIZATION 62 | #include "opencv2/objdetect/objdetect_tegra.hpp" 63 | #endif 64 | 65 | #endif 66 | -------------------------------------------------------------------------------- /opencv/src/opencv2/video/lkpyramid.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace cv 4 | { 5 | namespace detail 6 | { 7 | 8 | typedef short deriv_type; 9 | 10 | struct LKTrackerInvoker 11 | { 12 | LKTrackerInvoker( const Mat& _prevImg, const Mat& _prevDeriv, const Mat& _nextImg, 13 | const Point2f* _prevPts, Point2f* _nextPts, 14 | uchar* _status, float* _err, 15 | Size _winSize, TermCriteria _criteria, 16 | int _level, int _maxLevel, int _flags, float _minEigThreshold ); 17 | 18 | void operator()(const BlockedRange& range) const; 19 | 20 | const Mat* prevImg; 21 | const Mat* nextImg; 22 | const Mat* prevDeriv; 23 | const Point2f* prevPts; 24 | Point2f* nextPts; 25 | uchar* status; 26 | float* err; 27 | Size winSize; 28 | TermCriteria criteria; 29 | int level; 30 | int maxLevel; 31 | int flags; 32 | float minEigThreshold; 33 | }; 34 | 35 | }// namespace detail 36 | }// namespace cv 37 | 38 | -------------------------------------------------------------------------------- /opencv/src/opencv2/video/precomp.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_PRECOMP_H__ 44 | #define __OPENCV_PRECOMP_H__ 45 | 46 | #ifdef HAVE_CVCONFIG_H 47 | #include "cvconfig.h" 48 | #endif 49 | 50 | #include "opencv2/video/tracking.hpp" 51 | #include "opencv2/video/background_segm.hpp" 52 | #include "opencv2/imgproc/imgproc_c.h" 53 | #include "opencv2/core/internal.hpp" 54 | 55 | #include 56 | 57 | #ifdef HAVE_TEGRA_OPTIMIZATION 58 | #include "opencv2/video/video_tegra.hpp" 59 | #endif 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /opencv/src/opencv2/video/simpleflow.hpp: -------------------------------------------------------------------------------- 1 | /*M/////////////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 4 | // 5 | // By downloading, copying, installing or using the software you agree to this license. 6 | // If you do not agree to this license, do not download, install, 7 | // copy or use the software. 8 | // 9 | // 10 | // License Agreement 11 | // For Open Source Computer Vision Library 12 | // 13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. 15 | // Third party copyrights are property of their respective owners. 16 | // 17 | // Redistribution and use in source and binary forms, with or without modification, 18 | // are permitted provided that the following conditions are met: 19 | // 20 | // * Redistribution's of source code must retain the above copyright notice, 21 | // this list of conditions and the following disclaimer. 22 | // 23 | // * Redistribution's in binary form must reproduce the above copyright notice, 24 | // this list of conditions and the following disclaimer in the documentation 25 | // and/or other materials provided with the distribution. 26 | // 27 | // * The name of the copyright holders may not be used to endorse or promote products 28 | // derived from this software without specific prior written permission. 29 | // 30 | // This software is provided by the copyright holders and contributors "as is" and 31 | // any express or implied warranties, including, but not limited to, the implied 32 | // warranties of merchantability and fitness for a particular purpose are disclaimed. 33 | // In no event shall the Intel Corporation or contributors be liable for any direct, 34 | // indirect, incidental, special, exemplary, or consequential damages 35 | // (including, but not limited to, procurement of substitute goods or services; 36 | // loss of use, data, or profits; or business interruption) however caused 37 | // and on any theory of liability, whether in contract, strict liability, 38 | // or tort (including negligence or otherwise) arising in any way out of 39 | // the use of this software, even if advised of the possibility of such damage. 40 | // 41 | //M*/ 42 | 43 | #ifndef __OPENCV_SIMPLEFLOW_H__ 44 | #define __OPENCV_SIMPLEFLOW_H__ 45 | 46 | #include 47 | 48 | using namespace std; 49 | 50 | #define MASK_TRUE_VALUE 255 51 | #define UNKNOWN_FLOW_THRESH 1e9 52 | 53 | namespace cv { 54 | 55 | inline static float dist(const Vec3b& p1, const Vec3b& p2) { 56 | return (float)((p1[0] - p2[0]) * (p1[0] - p2[0]) + 57 | (p1[1] - p2[1]) * (p1[1] - p2[1]) + 58 | (p1[2] - p2[2]) * (p1[2] - p2[2])); 59 | } 60 | 61 | inline static float dist(const Vec2f& p1, const Vec2f& p2) { 62 | return (p1[0] - p2[0]) * (p1[0] - p2[0]) + 63 | (p1[1] - p2[1]) * (p1[1] - p2[1]); 64 | } 65 | 66 | inline static float dist(const Point2f& p1, const Point2f& p2) { 67 | return (p1.x - p2.x) * (p1.x - p2.x) + 68 | (p1.y - p2.y) * (p1.y - p2.y); 69 | } 70 | 71 | inline static float dist(float x1, float y1, float x2, float y2) { 72 | return (x1 - x2) * (x1 - x2) + 73 | (y1 - y2) * (y1 - y2); 74 | } 75 | 76 | inline static int dist(int x1, int y1, int x2, int y2) { 77 | return (x1 - x2) * (x1 - x2) + 78 | (y1 - y2) * (y1 - y2); 79 | } 80 | 81 | template 82 | inline static T min(T t1, T t2, T t3) { 83 | return (t1 <= t2 && t1 <= t3) ? t1 : min(t2, t3); 84 | } 85 | 86 | } 87 | 88 | #endif 89 | --------------------------------------------------------------------------------