Hi, I have pictures (.png) of the shape of many entrances of woodpeckers? cavities, coloured in black. I want that R takes these pictures and stacks (superimposes) all the shapes to determine the tendency of the shape of cavities for each species of woodpecker. I currently use the package EBImage which determine the mean radius of the shape of entrances (the shape is divided in 8 parts, and the package measure the mean radius for each part). So this package uses only the mean radius for each part of the shape. But, I would like that R use the real shape of cavities. Is another package exists, which will use the real shape of my pictures ? Thanks, -------------- section suivante -------------- Une pi?ce jointe autre que texte a ?t? nettoy?e... Nom: GRPI.png Type: image/png Taille: 85756 octets Desc: non disponible URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20140306/3321995f/attachment.png> -------------- section suivante -------------- Une pi?ce jointe autre que texte a ?t? nettoy?e... Nom: A13A02_11 ao?t 2013_CABR ds GRPI_Cav.png Type: image/png Taille: 18245 octets Desc: non disponible URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20140306/3321995f/attachment-0001.png>
Dear Violette, Search for elliptical Fourier analysis. RSiteSearch("elliptical fourier analysis") Best regards, Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance Kliniekstraat 25 1070 Anderlecht Belgium + 32 2 525 02 51 + 32 54 43 61 85 Thierry.Onkelinx at inbo.be www.inbo.be To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of. ~ Sir Ronald Aylmer Fisher The plural of anecdote is not data. ~ Roger Brinner The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey -----Oorspronkelijk bericht----- Van: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] Namens Violette BERTRAND Verzonden: donderdag 6 maart 2014 22:52 Aan: r-help at r-project.org Onderwerp: [R] shapes of woodpeckers' cavities Hi, I have pictures (.png) of the shape of many entrances of woodpeckers? cavities, coloured in black. I want that R takes these pictures and stacks (superimposes) all the shapes to determine the tendency of the shape of cavities for each species of woodpecker. I currently use the package EBImage which determine the mean radius of the shape of entrances (the shape is divided in 8 parts, and the package measure the mean radius for each part). So this package uses only the mean radius for each part of the shape. But, I would like that R use the real shape of cavities. Is another package exists, which will use the real shape of my pictures ? Thanks, * * * * * * * * * * * * * D I S C L A I M E R * * * * * * * * * * * * * Dit bericht en eventuele bijlagen geven enkel de visie van de schrijver weer en binden het INBO onder geen enkel beding, zolang dit bericht niet bevestigd is door een geldig ondertekend document. The views expressed in this message and any annex are purely those of the writer and may not be regarded as stating an official position of INBO, as long as the message is not confirmed by a duly signed document.
On 03/07/2014 08:51 AM, Violette BERTRAND wrote:> Hi, > > I have pictures (.png) of the shape of many entrances of woodpeckers? cavities, coloured in black. I want that R takes these pictures and stacks (superimposes) all the shapes to determine the tendency of the shape of cavities for each species of woodpecker. > > I currently use the package EBImage which determine the mean radius of the shape of entrances (the shape is divided in 8 parts, and the package measure the mean radius for each part). So this package uses only the mean radius for each part of the shape. > > But, I would like that R use the real shape of cavities. Is another package exists, which will use the real shape of my pictures ? >Hi Violette, I think that this is more of a graphics manipulation. You can get the outline of the woodpecker hole by: 1) loading your image into the GIMP 2) duplicating it 3) scaling the duplicate down by about 2.5% 4) select the area using "similar colors" 5) bucket fill the selected area with white 6) copy the selected area 7) paste it onto the original image You will then have the outline as in the image attached. I don't know whether the GIMP will do it, but there are image compositing functions that will produce an average of many images. There you have your average woodpecker hole. Jim -------------- next part -------------- A non-text attachment was scrubbed... Name: woodpecker_outline.png Type: image/png Size: 6528 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20140307/8be768a1/attachment.png>