Dear Imagers,
It used to be possible to control a Sony camera through a Scion CG-7 board using the package Scion for ImageJ which incorporates a "Live_Capture" plug-in. This facility no longer seems to work. Even with Live_capture.class and Live_Capture.java obviously resident in the plug-ins folder, ImageJ returns the message "Live_Capture plug-in not found". What could this simple biologist be doing wrong? (Using Windows XP and ImageJ1.36b) Many thanks, Bob Bob Fleming Bone Biology Group Roslin Institute Scotland, UK tel 00 44 131 527 4244 fax 00 44 131 440 0434 URL: www.roslin.ac.uk The information contained in this e-mail (including any attachments) is confidential and is intended for the use of the addressee only. The opinions expressed within this e-mail (including any attachments) are the opinions of the sender and do not necessarily constitute those of Roslin Institute (Edinburgh) ("the Institute") unless specifically stated by a sender who is duly authorised to do so on behalf of the Institute. |
I'm not familiar with this board and plug-in, but the Scion digital cameras
require installed Twain support for Java in addition to the Scion plug-in. Could this also be necessary, but missing, in your case? ____________________________ Robert W. Baer, Ph.D. Associate Professor Department of Physiology A. T. Still University of Health Science 800 W. Jefferson St. Kirksville, MO 63501-1497 USA ----- Original Message ----- From: "bob fleming (RI)" <[hidden email]> To: <[hidden email]> Sent: Wednesday, October 04, 2006 11:23 AM Subject: Problem with Scion for ImageJ Live Capture Dear Imagers, It used to be possible to control a Sony camera through a Scion CG-7 board using the package Scion for ImageJ which incorporates a "Live_Capture" plug-in. This facility no longer seems to work. Even with Live_capture.class and Live_Capture.java obviously resident in the plug-ins folder, ImageJ returns the message "Live_Capture plug-in not found". What could this simple biologist be doing wrong? (Using Windows XP and ImageJ1.36b) Many thanks, Bob Bob Fleming Bone Biology Group Roslin Institute Scotland, UK tel 00 44 131 527 4244 fax 00 44 131 440 0434 URL: www.roslin.ac.uk The information contained in this e-mail (including any attachments) is confidential and is intended for the use of the addressee only. The opinions expressed within this e-mail (including any attachments) are the opinions of the sender and do not necessarily constitute those of Roslin Institute (Edinburgh) ("the Institute") unless specifically stated by a sender who is duly authorised to do so on behalf of the Institute. |
In reply to this post by bob fleming (RI)
> It used to be possible to control a Sony camera through a Scion CG-7
> board using the package Scion for ImageJ which incorporates a > "Live_Capture" plug-in. This facility no longer seems to work. Even > with Live_capture.class and Live_Capture.java obviously resident in > the plug-ins folder, ImageJ returns the message "Live_Capture > plug-in not found". > > What could this simple biologist be doing wrong? A .class file used by the Live_Capture plugin is probably missing. Try upgrading to ImageJ 1.37k or later. You will then get a better error message that looks something like this: Plugin or class not found: "Live_Capture" (java.lang.NoClassDefFoundError: LiveCaptureHelper) where LiveCaptureHelper.class is the actual missing file. -wayne |
-----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Wayne Rasband Sent: 05 October 2006 14:38 To: [hidden email] Subject: Re: Problem with Scion for ImageJ Live Capture > It used to be possible to control a Sony camera through a Scion CG-7 > board using the package Scion for ImageJ which incorporates a > "Live_Capture" plug-in. This facility no longer seems to work. Even > with Live_capture.class and Live_Capture.java obviously resident in > the plug-ins folder, ImageJ returns the message "Live_Capture plug-in > not found". > > What could this simple biologist be doing wrong? A .class file used by the Live_Capture plugin is probably missing. Try upgrading to ImageJ 1.37k or later. You will then get a better error message that looks something like this: Plugin or class not found: "Live_Capture" (java.lang.NoClassDefFoundError: LiveCaptureHelper) where LiveCaptureHelper.class is the actual missing file. -wayne |
In reply to this post by Wayne Rasband
Dear Wayne,
Thankyou for your help. The more accurate error message now reads "java.lang.NoClassDefFoundError: scion/fg/capture/export_listener" (when trying to run the plug-in "Live_Capture") OR "......./fg_manager" (when trying to run "Capture_Greyscale"), But unfortunately, I cannot find these class files on the ImageJ website. Where can they be found? Many thanks, Bob -----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Wayne Rasband Sent: 05 October 2006 14:38 To: [hidden email] Subject: Re: Problem with Scion for ImageJ Live Capture > It used to be possible to control a Sony camera through a Scion CG-7 > board using the package Scion for ImageJ which incorporates a > "Live_Capture" plug-in. This facility no longer seems to work. Even > with Live_capture.class and Live_Capture.java obviously resident in > the plug-ins folder, ImageJ returns the message "Live_Capture plug-in > not found". > > What could this simple biologist be doing wrong? A .class file used by the Live_Capture plugin is probably missing. Try upgrading to ImageJ 1.37k or later. You will then get a better error message that looks something like this: Plugin or class not found: "Live_Capture" (java.lang.NoClassDefFoundError: LiveCaptureHelper) where LiveCaptureHelper.class is the actual missing file. -wayne |
In reply to this post by Wayne Rasband
Hi,
Could anyone instruct me how to use the macro getLine(x1,y1,x2,y2,line width)? I have a line selection and would like to get the coordinates and line length. Thank you. Brad |
Hi,
On Thu, 5 Oct 2006, Yu, Ming-Jiun (NIH/NHLBI) [F] wrote: > Could anyone instruct me how to use the macro getLine(x1,y1,x2,y2,line > width)? I have a line selection and would like to get the coordinates > and line length. Thank you. getLine(x1, y1, x2, y2, width); print("first point: (" + x1 + ", " + y1 + ")"); print("2nd point: (" + x2 + ", " + y2 + ")"); dx = x1 - x2; dy = y1 - y2; length = sqrt(dx * dx + dy * dy); print("length: " + length); Hth, Dscho |
Thank you Johannes and Wayne,
With your help, I have finished the job. See the below macro, which rotates a line selection at an input angle and puts out intensity profiles. Can anyone show me how to print numbers in separate columns in the log window? The last part of the macro below lists number continuously... Thank you again. Brad // RotateLineSelection.txt // // Rotates a line selection by a specified angle. // // Users draw a line selection on an active image. // Run the macro and specify an angle to rotate. macro "Rotate Line Selection" { // Ask for rotating angle and determine the turns angle = getNumber("Angle: ", 60)*PI/180; turn = 2*PI/angle; // Find the center by using getLine() and the beginning angle id=getImageID; getLine(x1, y1, x2, y2, width); dx = x1 - x2; dy = y1 - y2; r = sqrt(dx * dx + dy * dy); a = atan2(dy, dx); // Determine new x2, y2 based on the input angle for (i=0; i<turn; i++) { selectImage(id); b = angle*(i); x2=x1+r*cos(a+b-PI); y2=y1+r*sin(a+b-PI); // Make a new line selection and plot pixel intensity makeLine(x1,y1,x2,y2); run("Plot Profile"); selectImage(id); profile=getProfile(); for (j=0; j<profile.length; j++) { print(j+" "+profile[j]); } } } -----Original Message----- From: Johannes Schindelin [mailto:[hidden email]] Sent: Thursday, October 05, 2006 1:06 PM To: List IMAGEJ Subject: Re: getLine Hi, On Thu, 5 Oct 2006, Yu, Ming-Jiun (NIH/NHLBI) [F] wrote: > Could anyone instruct me how to use the macro getLine(x1,y1,x2,y2,line > width)? I have a line selection and would like to get the coordinates > and line length. Thank you. getLine(x1, y1, x2, y2, width); print("first point: (" + x1 + ", " + y1 + ")"); print("2nd point: (" + x2 + ", " + y2 + ")"); dx = x1 - x2; dy = y1 - y2; length = sqrt(dx * dx + dy * dy); print("length: " + length); Hth, Dscho |
In reply to this post by Yu, Ming-Jiun (NIH/NHLBI) [F]
Write the output to the Results table. You can also speed up the macro
a lot by not displaying the profile plots. // Generates radial profiles and saves them in the Results table getLine(x1, y1, x2, y2, width); if (x1<0) exit("Straight line selection required"); angle = getNumber("Angle: ", 60)*PI/180; turn = 2*PI/angle; dx = x1 - x2; dy = y1 - y2; r = sqrt(dx * dx + dy * dy); a = atan2(dy, dx); for (i=0; i<turn; i++) { b = angle*i; x2=x1+r*cos(a+b); y2=y1+r*sin(a+b); makeLine(x1,y1,x2,y2); profile=getProfile(); //run("Draw"); //wait(250); for (j=0; j<profile.length; j++) setResult(round(b*180/PI), j, profile[j]); } updateResults; -wayne On Oct 5, 2006, at 5:00 PM, Wayne Rasband wrote: > Thank you Johannes and Wayne, > With your help, I have finished the job. See the below macro, which > rotates a line selection at an input angle and puts out intensity > profiles. Can anyone show me how to print numbers in separate columns > in the log window? The last part of the macro below lists number > continuously... Thank you again. > Brad > > // RotateLineSelection.txt > // > // Rotates a line selection by a specified angle. > // > // Users draw a line selection on an active image. > // Run the macro and specify an angle to rotate. > > macro "Rotate Line Selection" { > > // Ask for rotating angle and determine the turns > angle = getNumber("Angle: ", 60)*PI/180; > turn = 2*PI/angle; > > // Find the center by using getLine() and the beginning angle > id=getImageID; > getLine(x1, y1, x2, y2, width); > dx = x1 - x2; > dy = y1 - y2; > r = sqrt(dx * dx + dy * dy); > a = atan2(dy, dx); > > // Determine new x2, y2 based on the input angle > for (i=0; i<turn; i++) { > selectImage(id); > b = angle*(i); > x2=x1+r*cos(a+b-PI); > y2=y1+r*sin(a+b-PI); > > // Make a new line selection and plot pixel intensity > makeLine(x1,y1,x2,y2); > run("Plot Profile"); > > selectImage(id); > profile=getProfile(); > for (j=0; j<profile.length; j++) { > print(j+" "+profile[j]); > } > } > } > > -----Original Message----- > From: Johannes Schindelin [mailto:[log in to unmask]] > Sent: Thursday, October 05, 2006 1:06 PM > To: List IMAGEJ > Subject: Re: getLine > > > Hi, > > On Thu, 5 Oct 2006, Yu, Ming-Jiun (NIH/NHLBI) [F] wrote: > > > Could anyone instruct me how to use the macro > getLine(x1,y1,x2,y2,line > > > width)? I have a line selection and would like to get the > coordinates > > > and line length. Thank you. > > getLine(x1, y1, x2, y2, width); > print("first point: (" + x1 + ", " + y1 + ")"); > print("2nd point: (" + x2 + ", " + y2 + ")"); > dx = x1 - x2; > dy = y1 - y2; > length = sqrt(dx * dx + dy * dy); > print("length: " + length); > > Hth, > Dscho > |
Free forum by Nabble | Edit this page |