search for: openimage

Displaying 4 results from an estimated 4 matches for "openimage".

2010 May 08
1
Error in RImageJ
...ww.google.fr/intl/en_en/images/logo.gif", dest = "google.gif" ) trying URL 'http://www.google.fr/intl/en_en/images/logo.gif' Content type 'image/gif' length 8558 bytes opened URL ================================================== downloaded 8558 bytes > image = IJ$openImage( "google.gif" ) Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, : java.lang.InternalError: Can't start the AWT because Java was started on the first thread. Make sure StartOnFirstThread is not specified in your application'...
2009 Oct 27
1
Rjava, RImageJ, and/or S4 question.
I am out of my league with this question. The following code starts the java imaging program ImageJ from within R, and displays an image (assuming ImageJ is installed on your computer). library(RImageJ) img <- IJ$openImage( file.choose() ) #pick an available .tif file img$show() # make the image object visible # An image is now displayed # find out about the objects involved > str(IJ) Formal class 'jobjRef' [package "rJava"] with 2 slots ..@ jobj :<externalptr> ..@ jclass: chr...
2020 Apr 29
0
golang: panic: runtime error: cgo argument has Go pointer to Go pointer
...inter goroutine 1 [running]: guestfs.(*Guestfs).Add_drive.func11(0xc000010028, 0xcda6a0, 0xc0000d6000, 0xc000090280) /opt/gopath/src/guestfs/guestfs.go:1440 +0xc2 guestfs.(*Guestfs).Add_drive(0xc000010028, 0x7ffd4b5d67ff, 0xd, 0xc00008d9d8, 0x0) /opt/gopath/src/guestfs/guestfs.go:1440 +0x1b2 main.OpenImage(0x7ffd4b5d67ff, 0xd, 0x0, 0x0, 0x42110b, 0x7c87e0, 0x4f41e0) /opt/gopath/src/disk/disk.go:34 +0x371 main.resizeext4(0x7ffd4b5d67ff, 0xd, 0x0, 0x0) /opt/gopath/src/disk/disk.go:677 +0x60 main.main() /opt/gopath/src/disk/disk.go:970 +0x5e5 i found struct in guestfs.h struct guestfs_add_drive_opts_a...
2011 Jul 20
0
Is it possible to save raster data as a bitmap?
...e same resolution as the original image. Here is a simplified version of what I'm working on: # Start example require("RImageJ") # first open image and store as raster logo <- system.file("images", "R.jpg", package = "RImageJ") img <- as.raster(IJ$openImage(logo)) # do some modifications modify <- as.raster(matrix(hsv(1, 1, 0.5 * rgb2hsv(col2rgb(img))[3,]), nrow(img), ncol(img))) # End example The next step in the example would be to store the raster data 'modify' as a bitmap image. I know that the 'image' function of the 'gr...