Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82977172
DEVIL_.java
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Sep 14, 13:16
Size
1 KB
Mime Type
text/x-c
Expires
Mon, Sep 16, 13:16 (2 d)
Engine
blob
Format
Raw Data
Handle
20779944
Attached To
R3926 DEVILS plugin
DEVIL_.java
View Options
package
ch.epfl.biop
;
import
ij.IJ
;
import
ij.ImageJ
;
import
ij.ImagePlus
;
import
ij.plugin.PlugIn
;
// here is the User Interface that runs the class DEVIL.java
public
class
DEVIL_
implements
PlugIn
{
@Override
public
void
run
(
String
arg0
)
{
// TODO Auto-generated method stub
int
particle_size
=
25
;
DEVIL
.
run
(
particle_size
);
}
/**
* Main method for debugging.
*
* For debugging, it is convenient to have a method that starts ImageJ, loads
* an image and calls the plugin, e.g. after setting breakpoints.
*
* @param args unused
*/
public
static
void
main
(
String
[]
args
)
{
// set the plugins.dir property to make the plugin appear in the Plugins menu
Class
<?>
clazz
=
DEVIL_
.
class
;
String
url
=
clazz
.
getResource
(
"/"
+
clazz
.
getName
().
replace
(
'.'
,
'/'
)
+
".class"
).
toString
();
String
pluginsDir
=
url
.
substring
(
"file:"
.
length
(),
url
.
length
()
-
clazz
.
getName
().
length
()
-
".class"
.
length
());
System
.
setProperty
(
"plugins.dir"
,
pluginsDir
);
// start ImageJ
new
ImageJ
();
// open the Clown sample
//ImagePlus image = IJ.openImage("http://imagej.net/images/clown.jpg");
//image.show();
// run the plugin
IJ
.
runPlugIn
(
clazz
.
getName
(),
""
);
}
}
Event Timeline
Log In to Comment