<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div id="yiv7453943678"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt;"><div id="yiv7453943678yui_3_13_0_1_1382945986816_2594">Im converting this code here</div><div id="yiv7453943678yui_3_13_0_1_1382945986816_2695"><tt id="yiv7453943678yui_3_13_0_7_1382945986816_33"><br></tt></div><div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:monospace;background-color:transparent;font-style:normal;" id="yiv7453943678yui_3_13_0_7_1382945986816_588"><tt id="yiv7453943678yui_3_13_0_7_1382945986816_33">
int board_n = board_w * board_h; <br id="yiv7453943678yui_3_13_0_7_1382945986816_597"></tt></div><div id="yiv7453943678yui_3_13_0_7_1382945986816_593" style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:monospace;background-color:transparent;font-style:normal;"><tt id="yiv7453943678yui_3_13_0_7_1382945986816_33"> CvPoint2D32f* corners = new CvPoint2D32f[ board_n ];</tt></div><div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;" id="yiv7453943678yui_3_13_0_7_1382945986816_11"><br>from this link http://dasl.mem.drexel.edu/~noahKuntz/openCVTut10.html<br id="yiv7453943678yui_3_13_0_7_1382945986816_18"></div><div id="yiv7453943678yui_3_13_0_7_1382945986816_15" style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;background-color:transparent;font-style:normal;">and in the code is a new operator id like to convert but i could use guidance how.</div><div id="yiv7453943678yui_3_13_0_7_1382945986816_22" style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">first of all i looked on google and there actually doesnt appear to be a C new operator only C++ which is a little weird because the code at the above link is full of only OpenCV C functions so either there is a C new operator or the author is using C and C++ together. I was going to do foreign-alloc but at this<a href="http://en.cppreference.com/w/cpp/memory/new/operator_new"> link</a> about the new operator for C++ it says <br>"Allocates<code>count</code>bytes from free store. Calls the function pointer returned by <span class=""><a
href="http://en.cppreference.com/w/cpp/memory/new/get_new_handler" title="cpp/memory/new/get new handler">std::get_new_handler</a></span> on failure and repeats allocation attempts until new handler does not return or becomes a null pointer, at which time throws <span class=""><a href="http://en.cppreference.com/w/cpp/memory/new/bad_alloc" title="cpp/memory/new/bad alloc">std::bad_alloc</a></span>."<br><br>I dont really know what to make of that and that link is for C++...thus the reason for my question....any guidance is appreciated<br></div></div></div></div></div></body></html>