Page 2 of 2

Re: Edge Detection, Image Manipulation, and Data Extractio

Posted: 2014-07-26T22:13:05-07:00
by rsangole
fmw42 wrote:What is R? Ruby?
Nope. R is a statistical programming language.

http://www.r-project.org/

Re: Edge Detection, Image Manipulation, and Data Extractio

Posted: 2014-07-26T22:37:29-07:00
by fmw42
rsangole wrote:
fmw42 wrote:What is R? Ruby?
Nope. R is a statistical programming language.

http://www.r-project.org/
That is pretty neat! I did not know about that. I will have to look into that further. So I take it you just want to get x,y points and pass them to R for your analysis. Perhaps that will be all you will need and not the Hough data.

Please get back with what results you are able to get from using it on this data set. I am curious to see how you get the information you need from just the list of x,y coordinates.

Re: Edge Detection, Image Manipulation, and Data Extractio

Posted: 2014-07-27T05:38:47-07:00
by rsangole
snibgo wrote:
rsangole wrote:... can't figure out how to permanently change the PATH and MAGICK_HOME variables
Re white/gray(255): perhaps IM can't find colors.xml, which should be in MAGICK_HOME.
You're probably right. Wierdly... through terminal, $PATH and $MAGICK_HOME turn out OK.

Code: Select all

Rahuls-MacBook-Pro:~ Rahul$ $MAGICK_HOME
-bash: /Users/Rahul/Documents/ImageMagick-6.8.9: is a directory
Rahuls-MacBook-Pro:~ Rahul$ $PATH
-bash: /Users/Rahul/Documents/ImageMagick-6.8.9/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/local/MacGPG2/bin: No such file or directory
Rahuls-MacBook-Pro:~ Rahul$ 
But, calling them through R, I don't get the same results:

Code: Select all

> system("$PATH")
sh: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/local/MacGPG2/bin:/opt/local/bin: No such file or directory
> system("$MAGICK_HOME")
> 
Any ideas?

Re: Edge Detection, Image Manipulation, and Data Extractio

Posted: 2014-07-27T06:10:59-07:00
by rsangole
Solved:

https://support.rstudio.com/hc/communit ... orks-fine-
By default OSX GUI applications don't inherit the environment variables set in the .profile file. The easiest way to solve this is simply to invoke RStudio from the Terminal using the following command:
open -a RStudio
which will open it using the .profile settings you've configured on your machine.