Hough transform: Difference between revisions
→{{header|J}}
m (→{{header|J}}) |
|||
Line 150:
|.([: <:@(#/.~) (i.h)&,)"1&.|: rho NB. consolidate into picture
)</lang>
'''Example use:'''
[[Image:JHoughTransform.png|320px200px|thumb|right|Image produced by J implementation of the Hough transform when applied to the sample pentagon image.]]<lang j> require 'viewmat media/platimg'
Img=: readimg jpath '~temp/pentagon.png'
viewmat 320 240 houghTransform _1 > Img</lang>
|