3

I am trying to implement watershed algorithm with markers in java, found a example here, the code is in c++, i tried hard to convert it in java code but failed. Is there anyone who have already done it before? please help! I stuck at this function (cv2.connectedComponents()) because can't find it in java doc.

1
  • The requested Url of the example is offline Commented Oct 7, 2015 at 11:36

1 Answer 1

1

Add JavaCV to your project, it is an OpenCV wrapper for Java. In JavaCV the watershed algorithm is provided by cvWatershed():

public static native void cvWatershed(CvArr image, CvArr markers);

You might find this thread interesting: Setting-up javaCV on NetBeans and Eclipse.

Sign up to request clarification or add additional context in comments.

1 Comment

Why do you need to install Install Microsoft Visual C++?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.