1

Using appropriate markers for watershed [opencv]

view story
linux-howto

http://stackoverflow.com – As an extension of watershed-example-in-android-opencv, I am trying to identify how to pass on appropriate markers to watershed function; provided that the watershed is done after the image has been processed with Canny or Sobel edge detectors. Current code does not work, as it retrieves rba frame from an android phone and returns the modified frame which is totally white. My thinking is that information loss might occur along the conversion of the markers to CV_32S. public Mat onCameraFrame(CvCameraViewFrame inputFrame) { mRgba = inputFrame.rgba(); Mat threeChannel = new Mat( (HowTos)