Hi.
I am having a problem with opening saved Roi sets on my Fiji Image J application. When I open a Z stack with its corresponding Roi set, the regions of interest are corrupted. Rather than the globular structures I traced, I am seeing strange jagged lines and some half circles... not sure what is going on here, but the files are certainly not the same as what I saved. The location of the Roi's are correct, but not the shape. Some are more complete than others. I noticed the problem after dragging the Roi files onto my external hard drive. Not sure if that has anything to do with it. Has anyone had a problem similar to this, or know how I might fix it? Most likely I will have to re-trace all of my sets, but I am crossing my fingers that I can get some help! Thanks a lot, Erika -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
A coworker wanted to copy the values in a selection and paste them into
an Excel spreadsheet. I couldn't find an ImageJ feature that did this so I wrote up a simple macro (see below). BUT I found the String.copy() function didn't always work. After running the macro, the paste into Excel would put the result from a previous "<ctrl>c-style" copy. I blundered onto printing the result to the Log window (and then closing the Log window) as a way to cement the String.copy() into the clipboard but this seems like a kludge. Is there something I'm doing wrong? Thanks, Dwight Bartholomew // Obtain the current selection getSelectionBounds(x, y, width, height); // Copy values into the string buffer String.resetBuffer; for(r=y; r<(y+height); r++) { for(c=x; c<(x+width); c++) { value = getPixel(c,r); String.append(value + "\t"); } String.append("\n"); } // Copy the table of values to the Clipboard String.copy(String.buffer); // For some strange reason, I MUST print to the Log window to make the table of values appear in the ClipBoard. // So, here we print the table into the Log window and, then, close the Log window. print(String.paste); selectWindow("Log"); run("Close"); -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
FYI, running...
Windows XP Professional 2002 Service Pack 3 ImageJ 1.47g -----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Bartholomew, Dwight @ ESG - WSS - IRP Sent: Thursday, January 10, 2013 8:34 AM To: [hidden email] Subject: String.copy() macro function doesn't always work A coworker wanted to copy the values in a selection and paste them into an Excel spreadsheet. I couldn't find an ImageJ feature that did this so I wrote up a simple macro (see below). BUT I found the String.copy() function didn't always work. After running the macro, the paste into Excel would put the result from a previous "<ctrl>c-style" copy. I blundered onto printing the result to the Log window (and then closing the Log window) as a way to cement the String.copy() into the clipboard but this seems like a kludge. Is there something I'm doing wrong? Thanks, Dwight Bartholomew // Obtain the current selection getSelectionBounds(x, y, width, height); // Copy values into the string buffer String.resetBuffer; for(r=y; r<(y+height); r++) { for(c=x; c<(x+width); c++) { value = getPixel(c,r); String.append(value + "\t"); } String.append("\n"); } // Copy the table of values to the Clipboard String.copy(String.buffer); // For some strange reason, I MUST print to the Log window to make the table of values appear in the ClipBoard. // So, here we print the table into the Log window and, then, close the Log window. print(String.paste); selectWindow("Log"); run("Close"); -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |