It's duplication of the standard OpenCV ROI support. Let's remove roi parameter from API.

User may call
<pre>
lsd_ptr-&gt;detect(image(roi), ..., lines);
lines += Scalar(roi.x, roi.y, roi.x, roi.y);
</pre>
if needed