Add non-stump based ocl Haar cascade classifier support.
authorpeng xiao <hisenxpress@gmail.com>
Thu, 30 May 2013 06:01:19 +0000 (14:01 +0800)
committerpeng xiao <hisenxpress@gmail.com>
Thu, 30 May 2013 06:01:19 +0000 (14:01 +0800)
commitfd7ba355ee99b923f975f33d9fa431f2c50c5b04
treea1fa9966cb617759f534f1d7018e645cc267f5fc
parent0ae40507e5dc07e5feec93b3c135550761a30d48
Add non-stump based ocl Haar cascade classifier support.
For example, haarcascade_frontalface_alt2.xml is now supported.
Note that classifier's pattern of a cascade file must be consistent,
i.e., all trees must either have two nodes or one node, otherwise
unexpected results will occur.

Other fixes:
Test cases are updated.
Some unused codes are removed.
Fix some problems of haar when using OclCascadeClassifierBuf.
modules/ocl/include/opencv2/ocl/ocl.hpp
modules/ocl/src/haar.cpp
modules/ocl/src/opencl/haarobjectdetect.cl
modules/ocl/src/opencl/haarobjectdetect_scaled2.cl
modules/ocl/test/test_haar.cpp