Embedding applet in a web page - help please

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Embedding applet in a web page - help please

Richard Byrne MRCVS
Dear List

This question seems to have been posed a few times before but I am unable
to locate the answer.

I am very new to ImageJ (and Java) but have some experience in
unix/perl/html.

We are currently using a Perl driven web based system on our SCO server to
store and retrieve many clinical files including DICOMS.

Image J running as an applet from the server with preloaded images in a
Perl generated webpage does what we require for viewing the DICOMS patient
side but the various pop up windows opening on the computer desktop poses
a few problems for our staff .

1. Could anyone supply a sample of html applet code that would open the
Image J control panel and the preloaded image in the webpage and not as
popups or

2. Tell me how to keep all the pop up windows on top of the desktop

A snippet of some of my current perl code is :-

-------------------------------------

#Get orignal image name from browser

$imagetoopen=param('Image');

print "Content-type: text/html\n\n";
print <<FORM;
<html>
<body>
Image J Java Viewer
<HR>


<APPLET code=ij.ImageJApplet.class width=0 height=0
archive="/applets/java/ij.jar">
<param name=url1 value="http://$localhost/$directory/$imagetoopen">

</applet>


</body>
</html>

FORM

-----------------------------------------------------------

which works fine

Many thanks

DB
Reply | Threaded
Open this post in threaded view
|

Re: Embedding applet in a web page - help please

dscho
Hi,

On Thu, 29 Jun 2006, Dickie Burn wrote:

> ... on our SCO server ...

You might want to change that for moral reasons. (And probably to
future-proof your network.)

> Image J running as an applet from the server with preloaded images in a
> Perl generated webpage does what we require for viewing the DICOMS patient
> side but the various pop up windows opening on the computer desktop poses
> a few problems for our staff .
>
> 1. Could anyone supply a sample of html applet code that would open the
> Image J control panel and the preloaded image in the webpage and not as
> popups or

I did not try that yet, but I gather it is a problem right now: you are
supposed to be able to have several windows open ("MDI"). Some plugins
even rely on that.

However, it might be possible by changing the code of ImageJ itself to
provide everything in one window ("SDI"). I have not looked into that, but
it seems quite involved.

> 2. Tell me how to keep all the pop up windows on top of the desktop

AFAIK this is not possible. At least not without adding a focus-lost
listener to the popups.

Hth,
Dscho
Reply | Threaded
Open this post in threaded view
|

Re: Embedding applet in a web page - help please

Richard Byrne MRCVS
Many thanks

DB
----- Original Message -----
From: "Johannes Schindelin" <[hidden email]>
To: <[hidden email]>
Sent: Thursday, June 29, 2006 1:08 PM
Subject: Re: Embedding applet in a web page - help please


> Hi,
>
> On Thu, 29 Jun 2006, Dickie Burn wrote:
>
>> ... on our SCO server ...
>
> You might want to change that for moral reasons. (And probably to
> future-proof your network.)
>
>> Image J running as an applet from the server with preloaded images in a
>> Perl generated webpage does what we require for viewing the DICOMS
>> patient
>> side but the various pop up windows opening on the computer desktop poses
>> a few problems for our staff .
>>
>> 1. Could anyone supply a sample of html applet code that would open the
>> Image J control panel and the preloaded image in the webpage and not as
>> popups or
>
> I did not try that yet, but I gather it is a problem right now: you are
> supposed to be able to have several windows open ("MDI"). Some plugins
> even rely on that.
>
> However, it might be possible by changing the code of ImageJ itself to
> provide everything in one window ("SDI"). I have not looked into that, but
> it seems quite involved.
>
>> 2. Tell me how to keep all the pop up windows on top of the desktop
>
> AFAIK this is not possible. At least not without adding a focus-lost
> listener to the popups.
>
> Hth,
> Dscho
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Embedding applet in a web page - help please

Oscar Lage Serrano
In reply to this post by Richard Byrne MRCVS
Hi Dickie, here you have an example of imagj running without any windows:

http://rsb.info.nih.gov/ij/ip-demo1/

Enjoy it!

Oscar Lage Serrano


2006/6/29, Dickie Burn <[hidden email]>:

>
> Dear List
>
> This question seems to have been posed a few times before but I am unable
> to locate the answer.
>
> I am very new to ImageJ (and Java) but have some experience in
> unix/perl/html.
>
> We are currently using a Perl driven web based system on our SCO server to
> store and retrieve many clinical files including DICOMS.
>
> Image J running as an applet from the server with preloaded images in a
> Perl generated webpage does what we require for viewing the DICOMS patient
> side but the various pop up windows opening on the computer desktop poses
> a few problems for our staff .
>
> 1. Could anyone supply a sample of html applet code that would open the
> Image J control panel and the preloaded image in the webpage and not as
> popups or
>
> 2. Tell me how to keep all the pop up windows on top of the desktop
>
> A snippet of some of my current perl code is :-
>
> -------------------------------------
>
> #Get orignal image name from browser
>
> $imagetoopen=param('Image');
>
> print "Content-type: text/html\n\n";
> print <<FORM;
> <html>
> <body>
> Image J Java Viewer
> <HR>
>
>
> <APPLET code=ij.ImageJApplet.class width=0 height=0
> archive="/applets/java/ij.jar">
> <param name=url1 value="http://$localhost/$directory/$imagetoopen">
>
> </applet>
>
>
> </body>
> </html>
>
> FORM
>
> -----------------------------------------------------------
>
> which works fine
>
> Many thanks
>
> DB
>
Reply | Threaded
Open this post in threaded view
|

Re: Embedding applet in a web page - help please

Richard Byrne MRCVS
We are using Image J to view DICOM files (CR radiographs on web browsers
across our site.

What we really need is for the DICOM  (*.dcm 8 bit grayscale )image to come
up in a window ??with scrollbars?? like in the IPDemo html with a few
buttons to
a. Be able to measure angles and lengths
b. able to zoom in and out
c. able to apply a set of LUT

I dont really at the momment understand all the stuff about .class files and
the directory arrangement to the ij.jar archive file etc.

If I am trying to get the ipdemo example to work on my server where do I
have to put the IPDemo.class file - is it in the same directory as as the
ij.jar file or do I unzip the ij.jar archive and pop the class file inside
somehwere e.g. inside the Process subdir? Do i need any other links?

I assume the .java file supplied  is the source file and is compiled into
the .class file by Sun's JDK

Many thanks
DB

----- Original Message -----
From: "Oscar Lage Serrano" <[hidden email]>
To: <[hidden email]>
Sent: Thursday, June 29, 2006 2:10 PM
Subject: Re: Embedding applet in a web page - help please


> Hi Dickie, here you have an example of imagj running without any windows:
>
> http://rsb.info.nih.gov/ij/ip-demo1/
>
> Enjoy it!
>
> Oscar Lage Serrano
>
>
> 2006/6/29, Dickie Burn <[hidden email]>:
>>
>> Dear List
>>
>> This question seems to have been posed a few times before but I am unable
>> to locate the answer.
>>
>> I am very new to ImageJ (and Java) but have some experience in
>> unix/perl/html.
>>
>> We are currently using a Perl driven web based system on our SCO server
>> to
>> store and retrieve many clinical files including DICOMS.
>>
>> Image J running as an applet from the server with preloaded images in a
>> Perl generated webpage does what we require for viewing the DICOMS
>> patient
>> side but the various pop up windows opening on the computer desktop poses
>> a few problems for our staff .
>>
>> 1. Could anyone supply a sample of html applet code that would open the
>> Image J control panel and the preloaded image in the webpage and not as
>> popups or
>>
>> 2. Tell me how to keep all the pop up windows on top of the desktop
>>
>> A snippet of some of my current perl code is :-
>>
>> -------------------------------------
>>
>> #Get orignal image name from browser
>>
>> $imagetoopen=param('Image');
>>
>> print "Content-type: text/html\n\n";
>> print <<FORM;
>> <html>
>> <body>
>> Image J Java Viewer
>> <HR>
>>
>>
>> <APPLET code=ij.ImageJApplet.class width=0 height=0
>> archive="/applets/java/ij.jar">
>> <param name=url1 value="http://$localhost/$directory/$imagetoopen">
>>
>> </applet>
>>
>>
>> </body>
>> </html>
>>
>> FORM
>>
>> -----------------------------------------------------------
>>
>> which works fine
>>
>> Many thanks
>>
>> DB
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Embedding applet in a web page - help please

Oscar Lage Serrano
You have to compile the .java file into byte code with Sun's JDK, that's
right.

Where to put the .class that you obtain after the compilation, and the
ImageJ Library (ij.jar)... I don't know, I supose that you have to put
ij.jar and IPDemo.class in the same directory, if it doesn't works you can
unzip it, but you have to mantain the original files directoriy.



2006/6/29, Richard Byrne MRCVS <[hidden email]>:

>
> We are using Image J to view DICOM files (CR radiographs on web browsers
> across our site.
>
> What we really need is for the DICOM  (*.dcm 8 bit grayscale )image to
> come
> up in a window ??with scrollbars?? like in the IPDemo html with a few
> buttons to
> a. Be able to measure angles and lengths
> b. able to zoom in and out
> c. able to apply a set of LUT
>
> I dont really at the momment understand all the stuff about .class files
> and
> the directory arrangement to the ij.jar archive file etc.
>
> If I am trying to get the ipdemo example to work on my server where do I
> have to put the IPDemo.class file - is it in the same directory as as the
> ij.jar file or do I unzip the ij.jar archive and pop the class file inside
> somehwere e.g. inside the Process subdir? Do i need any other links?
>
> I assume the .java file supplied  is the source file and is compiled into
> the .class file by Sun's JDK
>
> Many thanks
> DB
>
> ----- Original Message -----
> From: "Oscar Lage Serrano" <[hidden email]>
> To: <[hidden email]>
> Sent: Thursday, June 29, 2006 2:10 PM
> Subject: Re: Embedding applet in a web page - help please
>
>
> > Hi Dickie, here you have an example of imagj running without any
> windows:
> >
> > http://rsb.info.nih.gov/ij/ip-demo1/
> >
> > Enjoy it!
> >
> > Oscar Lage Serrano
> >
> >
> > 2006/6/29, Dickie Burn <[hidden email]>:
> >>
> >> Dear List
> >>
> >> This question seems to have been posed a few times before but I am
> unable
> >> to locate the answer.
> >>
> >> I am very new to ImageJ (and Java) but have some experience in
> >> unix/perl/html.
> >>
> >> We are currently using a Perl driven web based system on our SCO server
> >> to
> >> store and retrieve many clinical files including DICOMS.
> >>
> >> Image J running as an applet from the server with preloaded images in a
> >> Perl generated webpage does what we require for viewing the DICOMS
> >> patient
> >> side but the various pop up windows opening on the computer desktop
> poses
> >> a few problems for our staff .
> >>
> >> 1. Could anyone supply a sample of html applet code that would open the
> >> Image J control panel and the preloaded image in the webpage and not as
> >> popups or
> >>
> >> 2. Tell me how to keep all the pop up windows on top of the desktop
> >>
> >> A snippet of some of my current perl code is :-
> >>
> >> -------------------------------------
> >>
> >> #Get orignal image name from browser
> >>
> >> $imagetoopen=param('Image');
> >>
> >> print "Content-type: text/html\n\n";
> >> print <<FORM;
> >> <html>
> >> <body>
> >> Image J Java Viewer
> >> <HR>
> >>
> >>
> >> <APPLET code=ij.ImageJApplet.class width=0 height=0
> >> archive="/applets/java/ij.jar">
> >> <param name=url1 value="http://$localhost/$directory/$imagetoopen">
> >>
> >> </applet>
> >>
> >>
> >> </body>
> >> </html>
> >>
> >> FORM
> >>
> >> -----------------------------------------------------------
> >>
> >> which works fine
> >>
> >> Many thanks
> >>
> >> DB
> >>
> >
> >
>
Reply | Threaded
Open this post in threaded view
|

Stack and montage

Girault France
In reply to this post by dscho
Dear all,
 
I've just resolved my problem of camera plugin (cf previous post) . THANKS to IJ_Robot...Now I wonder how to do to make a stack of images.
I have 12 images open and my camera plugin. I would like to select the images that are open behind the camera without taking the camera screen as an image in order to make a stack. If I make a stack an then delete the camera screen i have to open the plugin again and this is not what I want.
I-m also wondering what is the best plugin to make automatically a montage of my stack of 12 images. These images are microscope images, and are a bit overlapping.
 
 
Does anybody have any suggestions ?
 
 
Many thanks
 
france
Reply | Threaded
Open this post in threaded view
|

Re: Stack and montage

Vincenzo Della Mea
Look for LargeMontage by prof. Jorma Isola; and, by the way, we are  
releasing (next week at the European Congress of Telepathology) a  
suite for digital slide acquisition.
Regards,
Vincenzo

Il giorno 30/giu/06, alle ore 10:58, Girault France ha scritto:

> Dear all,
>
> I've just resolved my problem of camera plugin (cf previous post) .  
> THANKS to IJ_Robot...Now I wonder how to do to make a stack of images.
> I have 12 images open and my camera plugin. I would like to select  
> the images that are open behind the camera without taking the  
> camera screen as an image in order to make a stack. If I make a  
> stack an then delete the camera screen i have to open the plugin  
> again and this is not what I want.
> I-m also wondering what is the best plugin to make automatically a  
> montage of my stack of 12 images. These images are microscope  
> images, and are a bit overlapping.
>
>
> Does anybody have any suggestions ?
>
>
> Many thanks
>
> france

* Vincenzo Della Mea
* Medical Informatics, Telemedicine and Ehealth Lab
* University od Udine, Italy
* http://mitel.dimi.uniud.it/  -  http://www.eslide.net
Reply | Threaded
Open this post in threaded view
|

Re: Stack and montage

Girault France
Hello,
 
I-ve tried to download the plugin Large MOntage, but I run it, a message error tells me that the plugin is not found.. why??
I've downloaded everything that I needed to run it, but it doesn-t work...
 
Cheers.
 
france
____________________________
France Girault
Geological Institute
CAB E-62
ETH Zürich
Universitätstrasse 6
8092 Zürich

[hidden email]
Private phone : ++4178/726.99.20
Office phone : ++4144/632 84 29

________________________________

From: ImageJ Interest Group on behalf of Vincenzo Della Mea
Sent: Fri 6/30/2006 11:17
To: [hidden email]
Subject: Re: Stack and montage



Look for LargeMontage by prof. Jorma Isola; and, by the way, we are
releasing (next week at the European Congress of Telepathology) a
suite for digital slide acquisition.
Regards,
Vincenzo

Il giorno 30/giu/06, alle ore 10:58, Girault France ha scritto:

> Dear all,
>
> I've just resolved my problem of camera plugin (cf previous post) .
> THANKS to IJ_Robot...Now I wonder how to do to make a stack of images.
> I have 12 images open and my camera plugin. I would like to select
> the images that are open behind the camera without taking the
> camera screen as an image in order to make a stack. If I make a
> stack an then delete the camera screen i have to open the plugin
> again and this is not what I want.
> I-m also wondering what is the best plugin to make automatically a
> montage of my stack of 12 images. These images are microscope
> images, and are a bit overlapping.
>
>
> Does anybody have any suggestions ?
>
>
> Many thanks
>
> france

* Vincenzo Della Mea
* Medical Informatics, Telemedicine and Ehealth Lab
* University od Udine, Italy
* http://mitel.dimi.uniud.it/  -  http://www.eslide.net <http://www.eslide.net/>
Reply | Threaded
Open this post in threaded view
|

Re: Stack and montage

Vincenzo Della Mea
did you install the TurboReg plugin too, according to the instructions?
By the way, if you don't mind for the overlap, you can also just use  
the montage function built in into ImageJ (menu Stacks: Make  
Montage), considering the low number of images.

Vincenzo

Il giorno 30/giu/06, alle ore 18:35, Girault France ha scritto:

> Hello,
>
> I-ve tried to download the plugin Large MOntage, but I run it, a  
> message error tells me that the plugin is not found.. why??
> I've downloaded everything that I needed to run it, but it doesn-t  
> work...
>
> Cheers.
>
> france
> ____________________________
> France Girault
> Geological Institute
> CAB E-62
> ETH Zürich
> Universitätstrasse 6
> 8092 Zürich
>
> [hidden email]
> Private phone : ++4178/726.99.20
> Office phone : ++4144/632 84 29
>
> ________________________________
>
> From: ImageJ Interest Group on behalf of Vincenzo Della Mea
> Sent: Fri 6/30/2006 11:17
> To: [hidden email]
> Subject: Re: Stack and montage
>
>
>
> Look for LargeMontage by prof. Jorma Isola; and, by the way, we are
> releasing (next week at the European Congress of Telepathology) a
> suite for digital slide acquisition.
> Regards,
> Vincenzo
>
> Il giorno 30/giu/06, alle ore 10:58, Girault France ha scritto:
>
>> Dear all,
>>
>> I've just resolved my problem of camera plugin (cf previous post) .
>> THANKS to IJ_Robot...Now I wonder how to do to make a stack of  
>> images.
>> I have 12 images open and my camera plugin. I would like to select
>> the images that are open behind the camera without taking the
>> camera screen as an image in order to make a stack. If I make a
>> stack an then delete the camera screen i have to open the plugin
>> again and this is not what I want.
>> I-m also wondering what is the best plugin to make automatically a
>> montage of my stack of 12 images. These images are microscope
>> images, and are a bit overlapping.
>>
>>
>> Does anybody have any suggestions ?
>>
>>
>> Many thanks
>>
>> france
>
> * Vincenzo Della Mea
> * Medical Informatics, Telemedicine and Ehealth Lab
> * University od Udine, Italy
> * http://mitel.dimi.uniud.it/  -  http://www.eslide.net <http://
> www.eslide.net/>

* Vincenzo Della Mea
* Medical Informatics, Telemedicine and Ehealth Lab
* University od Udine, Italy
* http://mitel.dimi.uniud.it/  -  http://www.eslide.net
Reply | Threaded
Open this post in threaded view
|

Re: Stack and montage

Raad Nashmi
Hi France,

I found that the Large Montage has some bugs.  The images and its
colours are altered when it is run.

You may want to try another Montage plugin called MosaicJ.
http://bigwww.epfl.ch/thevenaz/mosaicj/

Raad

At 12:03 AM 7/1/2006, you wrote:
>[hidden email]

-------------------------------------------
Raad Nashmi   PhD
Senior Research Fellow - Lester Lab
California Institute of Technology
Division of Biology, M/C156-29
1200 E. California Blvd
Pasadena, CA, 91125
phone 626-395-6063
fax 626-564-8709
Reply | Threaded
Open this post in threaded view
|

Re: Embedding applet in a web page - help please

Oscar Lage Serrano
In reply to this post by Oscar Lage Serrano
I have try to unzip ij.jar and locate in the same directory of the
IPDemo.class and it works fine. I have download de colour demo too, and if
you download de compress folder with the source code, the compiled
classes... and unzip it, all of them are right.

Oscar Lage Serrano

2006/6/30, Oscar Lage Serrano <[hidden email]>:

>
> You have to compile the .java file into byte code with Sun's JDK, that's
> right.
>
> Where to put the .class that you obtain after the compilation, and the
> ImageJ Library (ij.jar)... I don't know, I supose that you have to put
> ij.jar and IPDemo.class in the same directory, if it doesn't works you can
> unzip it, but you have to mantain the original files directoriy.
>
>
>
> 2006/6/29, Richard Byrne MRCVS < [hidden email]>:
>
> > We are using Image J to view DICOM files (CR radiographs on web browsers
> >
> > across our site.
> >
> > What we really need is for the DICOM  (*.dcm 8 bit grayscale )image to
> > come
> > up in a window ??with scrollbars?? like in the IPDemo html with a few
> > buttons to
> > a. Be able to measure angles and lengths
> > b. able to zoom in and out
> > c. able to apply a set of LUT
> >
> > I dont really at the momment understand all the stuff about .class files
> > and
> > the directory arrangement to the ij.jar archive file etc.
> >
> > If I am trying to get the ipdemo example to work on my server where do I
> >
> > have to put the IPDemo.class file - is it in the same directory as as
> > the
> > ij.jar file or do I unzip the ij.jar archive and pop the class file
> > inside
> > somehwere e.g. inside the Process subdir? Do i need any other links?
> >
> > I assume the .java file supplied  is the source file and is compiled
> > into
> > the .class file by Sun's JDK
> >
> > Many thanks
> > DB
> >
> > ----- Original Message -----
> > From: "Oscar Lage Serrano" < [hidden email]>
> > To: <[hidden email]>
> > Sent: Thursday, June 29, 2006 2:10 PM
> > Subject: Re: Embedding applet in a web page - help please
> >
> >
> > > Hi Dickie, here you have an example of imagj running without any
> > windows:
> > >
> > > http://rsb.info.nih.gov/ij/ip-demo1/
> > >
> > > Enjoy it!
> > >
> > > Oscar Lage Serrano
> > >
> > >
> > > 2006/6/29, Dickie Burn < [hidden email]>:
> > >>
> > >> Dear List
> > >>
> > >> This question seems to have been posed a few times before but I am
> > unable
> > >> to locate the answer.
> > >>
> > >> I am very new to ImageJ (and Java) but have some experience in
> > >> unix/perl/html.
> > >>
> > >> We are currently using a Perl driven web based system on our SCO
> > server
> > >> to
> > >> store and retrieve many clinical files including DICOMS.
> > >>
> > >> Image J running as an applet from the server with preloaded images in
> > a
> > >> Perl generated webpage does what we require for viewing the DICOMS
> > >> patient
> > >> side but the various pop up windows opening on the computer desktop
> > poses
> > >> a few problems for our staff .
> > >>
> > >> 1. Could anyone supply a sample of html applet code that would open
> > the
> > >> Image J control panel and the preloaded image in the webpage and not
> > as
> > >> popups or
> > >>
> > >> 2. Tell me how to keep all the pop up windows on top of the desktop
> > >>
> > >> A snippet of some of my current perl code is :-
> > >>
> > >> -------------------------------------
> > >>
> > >> #Get orignal image name from browser
> > >>
> > >> $imagetoopen=param('Image');
> > >>
> > >> print "Content-type: text/html\n\n";
> > >> print <<FORM;
> > >> <html>
> > >> <body>
> > >> Image J Java Viewer
> > >> <HR>
> > >>
> > >>
> > >> <APPLET code=ij.ImageJApplet.class width=0 height=0
> > >> archive="/applets/java/ij.jar">
> > >> <param name=url1 value="http://$localhost/$directory/$imagetoopen">
> > >>
> > >> </applet>
> > >>
> > >>
> > >> </body>
> > >> </html>
> > >>
> > >> FORM
> > >>
> > >> -----------------------------------------------------------
> > >>
> > >> which works fine
> > >>
> > >> Many thanks
> > >>
> > >> DB
> > >>
> > >
> > >
> >
>
>