test
merge from filiu
useful method in OpenCv