Ask Your Question
1

How to create a marker for watershed algorithm?

asked 2014-08-08 01:53:43 -0600

jamesnzt gravatar image

updated 2020-10-16 17:20:58 -0600

I like to create a marker for watershed based segmentation. Input is a GrayScale Image. If the intensity is in range 200 -225 then it is background else if the range is 100-199 then it is object. 0-99 May be object or background.

I read that the marker must be same size of original image and it must have int32 type.

  1. which datatype the marker should be CV_8UC1 or anything else?
  2. How can i define foreground,background and other object regions in marker.

Thanks in advance.

edit retag flag offensive close merge delete

Comments

See an example here

Haris gravatar imageHaris ( 2014-08-08 02:09:13 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-07-17 10:19:29 -0600

Royi gravatar image

If you know the intensity, why wouldn't you use simple thresholding to label the image?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-08-08 01:53:43 -0600

Seen: 384 times

Last updated: Aug 17 '14