Updated demo for OpenCV 2.4.0 compatibility
Updated demo for OpenCV 2.4.0 compatibility

bearpaw/mexopencv,nanit/mexopencv,fengzhyuan/mexopencv,CVML/mexopencv,bearpaw/mexopencv,fengzhyuan/mexopencv,nanit/mexopencv,ninghang/opencvmex,ninghang/opencvmex,CVML/mexopencv