Can anyone convert this syntax to java code "sure_fg = cv.threshold(dist_transform,0.7*dist_transform.max(),255,0);"

asked 2019-10-08 00:44:34 -0500

Fandi gravatar image

Can anyone convert this syntax to java code "sure_fg = cv.threshold(dist_transform,0.7*dist_transform.max(),255,0);" I did't know how to get dist_transform.max in my android studio

edit retag flag offensive close merge delete

Comments

1

... opencv has nice tutorials for this, even with java code. please read those before asking

then -- the maximum value of a normalized image is what ?

berak gravatar imageberak ( 2019-10-08 01:13:29 -0500 )edit

If its normalized (feature scaled?) it should be 1. Otherwise 255

holger gravatar imageholger ( 2019-10-10 03:18:47 -0500 )edit

i try java code tutorial but error

Fandi gravatar imageFandi ( 2019-10-18 06:01:13 -0500 )edit