Hough transform: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
|||
Line 132: | Line 132: | ||
nimx := im.Bounds().Max.X |
nimx := im.Bounds().Max.X |
||
mimy := im.Bounds().Max.Y |
mimy := im.Bounds().Max.Y |
||
mry = int(mry/2) * 2 |
|||
him := image.NewGray(image.Rect(0, 0, ntx, mry)) |
him := image.NewGray(image.Rect(0, 0, ntx, mry)) |
||
draw.Draw(him, him.Bounds(), image.NewUniform(color.White), |
draw.Draw(him, him.Bounds(), image.NewUniform(color.White), |
||
image. |
image.Point{}, draw.Src) |
||
rmax := math.Hypot(float64(nimx), float64(mimy)) |
rmax := math.Hypot(float64(nimx), float64(mimy)) |