This method is an instance method, not a static method. You cannot call it like this. You should first make an instance of
Segmentation^ myInstance
using
gcnew
and then call it with this instance via
myInstance->Vertical_Projection(/* ... */)
:
Segmentation^ myInstance = gcnew Segmentation();
myInstance->Vertical_Projection();
Please see:
http://msdn.microsoft.com/en-us/library/te3ecsc8%28v=vs.110%29.aspx[
^].
Let me tell you that, unfortunately, no answers can help you to do any programming at all: at this moment, you have no clue. This is such a basic thing, that you really should start from the very beginning. Grab a book or a manual and start from the very beginning, doing the simplest possible exercises as you go. When you get some confidence, come back and ask your questions.
—SA