Skip to content
Prev 1859 / 29559 Next

Image J and R compatability

On Wed, 14 Mar 2007, Andrew Niccolai wrote:

            
It might be worth seeing whether you can run the java through the rJava 
interface.
Are the thresholds known already? Are the images large? My guess would be 
that once you can find the patches, that there ought to be ways. The 
current functions in sp and maptools for turning grid cells into polygons, 
then taking the union of cells with specific factor levels might be a way 
to go for a prototype, but will be slow for all but small grids. You might 
look at getting the grid centres of grid cells belonging to the patch, 
then using a trick in deldir to identify the external points (those with 
larger tesselation areas than the grid cell) - because a convex hull would 
miss concavities. You could set an aspatial threshold, and later drop 
patches that are too small.

I think there may be ideas in EBimage and rimage, possibly also in one or 
other of the medical imaging packages (AnalyseFMRI perhaps).

Roger