Hello everyone, Does anyone know about any package for image processing, for example, to calculate body mass index pased on a picture, silouette or image. Any guidance will be greatly appreciated. Best regards, Paul [[alternative HTML version deleted]]
1) doing a web search on: "R package to calculate body mass index based on a picture, silhouette or image" did *not* bring up any R packages, but did provide what looked like relevant links to other software and research/discussions. You can decide whether or not this is useful "guidance" (if you have not already done this). Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sun, Feb 28, 2021 at 8:39 AM Paul Bernal <paulbernal07 at gmail.com> wrote:> Hello everyone, > > Does anyone know about any package for image processing, for example, to > calculate body mass index pased on a picture, silouette or image. > > Any guidance will be greatly appreciated. > > Best regards, > > Paul > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
Hi Paul, The paper doesn't seem to mention R and the journal doesn't inspire confidence, but the formulas provided give you a start: https://www.researchgate.net/publication/280133090_Calculation_of_Body_Mass_Index_using_Image_Processing_Techniques Jim On Mon, Mar 1, 2021 at 3:39 AM Paul Bernal <paulbernal07 at gmail.com> wrote:> > Hello everyone, > > Does anyone know about any package for image processing, for example, to > calculate body mass index pased on a picture, silouette or image. > > Any guidance will be greatly appreciated. > > Best regards, > > Paul > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Hi Paul, If the background is relatively uniform: Then a simple algorithm could be used, to distinguish foreground from background points. Essentially, returning a logical matrix. Otherwise, I'm assuming that suitable pooling/convolution operations could be used for this purpose. Then you could estimate *relative* measures of height and mass from the logical matrix. (With more precise measures being possible, if you know the image scales). There are a number of R packages for reading images. Currently, I mainly use Simon Urbanek's package, "png". I'm currently creating a package with support for pooling/convolution operations, and related utility functions. However, it's not ready yet. Another option is Jeroen Ooms' package, "magick". best, B. On Mon, Mar 1, 2021 at 5:39 AM Paul Bernal <paulbernal07 at gmail.com> wrote:> > Hello everyone, > > Does anyone know about any package for image processing, for example, to > calculate body mass index pased on a picture, silouette or image. > > Any guidance will be greatly appreciated. > > Best regards, > > Paul > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
"Body Mass Index" is a rather bizarre thing: body.mass.in.kg / height.in.m^2 I have never been able to find any biological or physical meaning for this. Yet clinicians are solemnly advised to measure the weight to the nearest 0.1kg and the height to the nearest 0.1cm. How do you propose to determine the weight from a single image? Even an R package cannot perform magic. On Mon, 1 Mar 2021 at 05:39, Paul Bernal <paulbernal07 at gmail.com> wrote:> Hello everyone, > > Does anyone know about any package for image processing, for example, to > calculate body mass index pased on a picture, silouette or image. > > Any guidance will be greatly appreciated. > > Best regards, > > Paul > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]