Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14759

Re: Image processing of Centroid and Radius

From stephen.p.luttrell@gmail.com
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Image processing of Centroid and Radius
Date 2013-06-06 11:23 +0000
Message-ID <koprf0$cgl$1@smc.vnet.net> (permalink)
References <komol9$1v5$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


You can detect a circular feature in an image by correlating the image with a kernel image of a circle with the same radius.

I had a quick look at your image (http://img850.imageshack.us/img850/6925/samplerd.png), and found that the following code nicely detects your circular feature.

im = <your image>
im2 = im // ImageAdjust // ColorNegate
ker = {FaceForm[White], EdgeForm[{Black, Thickness[0.1]}], Disk[]} // 
    Graphics // Rasterize[#, ImageSize -> 140] & // ColorNegate
corr = ImageCorrelate[im2, ker] // ImageAdjust

This solution needs to be tidied up and extended, but this approach gives you a fairly direct way of extracting the centroid and radius as you requested.

Stephen Luttrell

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Image processing of Centroid and Radius Antonio Alvaro Ranha Neves <aneves@gmail.com> - 2013-06-05 07:16 +0000
  Re: Image processing of Centroid and Radius stephen.p.luttrell@gmail.com - 2013-06-06 11:23 +0000

csiph-web