Creates binary tree representation for the input contour and returns the pointer to its root.


- contour (IntPtr)
- Input contour
- storage (IntPtr)
- Container for output tree
- threshold (Double)
- If the parameter threshold is less than or equal to 0, the function creates full binary tree representation. If the threshold is greater than 0, the function creates representation with the precision threshold: if the vertices with the interceptive area of its base line are less than threshold, the tree should not be built any further

The binary tree representation for the input contour