[Dclib-devel] Slicing run-time sized column or row vectors in dlib
Brought to you by:
davisking
From: Yogesh K. <yog...@ya...> - 2016-07-19 02:00:53
|
<div>Hi Guys,</div><div>I am beginner in both C++ and Dlib so bear with me.</div><div>When I tried to run some of the examples in my context,</div><div>I have a difficulty in a very simple thing:</div><div><pre><span>typedef</span><span> </span><span>matrix</span><<span>double</span>,<span>0</span>,<span>1</span>><span> </span><span>sample_type</span>;</pre><pre>//Samples is a dynamic array generated run time</pre><div> s<span>td</span><span>::</span><span>vector</span><span><</span><span>sample_type</span><span>></span><span> </span><span>samples;</span></div> </div><div>what I want to do is to trim the array (extract the subarray)</div><div>like </div><div>s<span>td</span><span>::</span><span>vector</span><span><</span><span>sample_type</span><span>></span><span> </span><span>A;</span></div><div><span>A=subm(samples,range(0,10),range(0,10));</span></div><div><span>but it throws the error "No matching function for call to.."</span></div><div> </div><div><span>Thanks a lot in advance.</span></div><div> </div><div><span>Warm Regards</span></div><div><span>Yogesh</span></div> |