Fixed inaccuracies with input mat type, pointers to double mats, image dims.
Fixed gradient list.
Adding found lines to vector. Marking lineID on region map.