How to change minimum object size in cytoseg

2 views
Skip to first unread message

Rick Giuly

unread,
Jan 16, 2013, 3:42:25 PM1/16/13
to kurt weiss, cyt...@googlegroups.com

Hi Kurt. There's no command line parameter to adjust the minimum size
yet, but if you edit the component_detector.py script, you can change it.

Check line 998. You need to use something like detector.minPerimeter = 1
instead of detector.minPerimeter = 60


code snippet:

elif self.target == 'mitochondria_new':

detector.retrievalMode = cv.CV_RETR_EXTERNAL
detector.minPerimeter = 60
detector.maxPerimeter = 600



Hope that helps
-Rick

Reply all
Reply to author
Forward
0 new messages