Re: [R] Dividing a pixel image into factors - (cut.im(), cut.default())

2009-12-06 Thread Rolf Turner
On 4/12/2009, at 10:10 PM, Gough Lauren wrote: Hi, I have a numeric pixel image which I would like to divide into factors for analysis in Spatstat. I have found that I can use cut.im() function to divide the range of pixel values into a series of equal length intervals (e.g. if my pixels

Re: [R] Dividing a pixel image into factors - (cut.im(), cut.default())

2009-12-04 Thread Glen Sargeant
Lauren, I think (?) you mean to say that you wish to create a factor and control the range of values assigned to each level. The "breaks" argument can specify either the number of intervals you desire OR the values you wish to use to define levels of your factor. See '?cut' and the following ex

[R] Dividing a pixel image into factors - (cut.im(), cut.default())

2009-12-04 Thread Gough Lauren
Hi, I have a numeric pixel image which I would like to divide into factors for analysis in Spatstat. I have found that I can use cut.im() function to divide the range of pixel values into a series of equal length intervals (e.g. if my pixels values range from 0 to 60, cut.im(X.im,breaks=2) wil