Hello all,
I know from previous postings that it is possible to call ImageJ from Matlab. Does anyone know if it is possible to call Matlab m files compiled as a dll from and ImageJ plugin??? Any suggestions and/or advice would be greatly appreciated. Thanks Thomas Sadowski Southern Connecticut State University _________________________________________________________________ Try Live.com: where your online world comes together - with news, sports, weather, and much more. http://www.live.com/getstarted |
Dear all
In the resultsTable, it is possible to select a row and clear only that specific row. In macro language, however, there only seems to exist the run("Clear Results"); command, which clears the entire resultstable. Is it possible to clear only certain, specified rows? Is there a command that I have overlooked or is in the make? Thanks in advance. Regards, winnok ___ winnok de vos academic assistant ghent university faculty of bioscience engineering dept. molecular biotechnology coupure links 653 9000 ghent belgium tel. 0032 (0)9 264.59.71 www.molecularbiotechnology.ugent.be |
If you would like to delete rows so that you can filter the result
table according to some parameter, I would suggest that you save the result table and re-import it with the Import_Results_Table.txt macro. You will easily be able to modify this macro to import only those rows that will be matching one or more specific criteria. Jerome Quoting "winnok h. de vos" <[hidden email]>: > Dear all > > In the resultsTable, it is possible to select a row and clear only that > specific row. In macro language, however, there only seems to exist the > run("Clear Results"); command, which clears the entire resultstable. Is it > possible to clear only certain, specified rows? Is there a command that I > have overlooked or is in the make? > Thanks in advance. > Regards, > > winnok > > > ___ > winnok de vos > > > academic assistant > > ghent university > faculty of bioscience engineering > dept. molecular biotechnology > coupure links 653 > 9000 ghent > belgium > > tel. 0032 (0)9 264.59.71 > www.molecularbiotechnology.ugent.be > |
Thanks Jerome for the tip. I modified the import results macro for my
specific condition and that works indeed. But this is the easiest way, there's no direct call? Regards winnok ___ winnok de vos academic assistant ghent university faculty of bioscience engineering dept. molecular biotechnology coupure links 653 9000 ghent belgium tel. 0032 (0)9 264.59.71 www.molecularbiotechnology.ugent.be -----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Jerome Mutterer Sent: donderdag 6 juli 2006 15:08 To: [hidden email] Subject: Re: delete rows in resultsTable If you would like to delete rows so that you can filter the result table according to some parameter, I would suggest that you save the result table and re-import it with the Import_Results_Table.txt macro. You will easily be able to modify this macro to import only those rows that will be matching one or more specific criteria. Jerome Quoting "winnok h. de vos" <[hidden email]>: > Dear all > > In the resultsTable, it is possible to select a row and clear only that > specific row. In macro language, however, there only seems to exist the > run("Clear Results"); command, which clears the entire resultstable. Is it > possible to clear only certain, specified rows? Is there a command that I > have overlooked or is in the make? > Thanks in advance. > Regards, > > winnok > > > ___ > winnok de vos > > > academic assistant > > ghent university > faculty of bioscience engineering > dept. molecular biotechnology > coupure links 653 > 9000 ghent > belgium > > tel. 0032 (0)9 264.59.71 > www.molecularbiotechnology.ugent.be > |
In reply to this post by Winnok H. De Vos
Winnok, compile and run the following plugin code, restart ImageJ, and
you will be able to delete a given (i+1)th row in the results table with the following command from the macro language : run("delete Row",i); Just like in setResult() and getResult(), the first row is 0 and the last row is (nResults-1) Jerome Here is the plugin's code : // delete_Row.java // // deletes the specified row in the Results Table // when invoked from the macro language like this: // run("delete Row",i); import ij.*; import ij.plugin.*; import ij.measure.*; public class delete_Row implements PlugIn { public void run(String s) { try { String arg = Macro.getOptions().trim(); if (arg.equals("")) arg = "0"; ResultsTable rt = ResultsTable.getResultsTable(); rt.deleteRow(java.lang.Integer.parseInt(arg)); IJ.runMacro("updateResults();"); } catch (Exception e) { } ; } } Quoting "winnok h. de vos" <[hidden email]>: > Thanks Jerome for the tip. I modified the import results macro for my > specific condition and that works indeed. But this is the easiest way, > there's no direct call? > Regards > > winnok > ___ > winnok de vos > > > academic assistant > > ghent university > faculty of bioscience engineering > dept. molecular biotechnology > coupure links 653 > 9000 ghent > belgium > > tel. 0032 (0)9 264.59.71 > www.molecularbiotechnology.ugent.be > > > -----Original Message----- > From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Jerome > Mutterer > Sent: donderdag 6 juli 2006 15:08 > To: [hidden email] > Subject: Re: delete rows in resultsTable > > If you would like to delete rows so that you can filter the result > table according to some parameter, I would suggest that you save the > result table and re-import it with the Import_Results_Table.txt macro. > You will easily be able to modify this macro to import only those rows > that will be matching one or more specific criteria. > > Jerome > > Quoting "winnok h. de vos" <[hidden email]>: > >> Dear all >> >> In the resultsTable, it is possible to select a row and clear only that >> specific row. In macro language, however, there only seems to exist the >> run("Clear Results"); command, which clears the entire resultstable. Is it >> possible to clear only certain, specified rows? Is there a command that I >> have overlooked or is in the make? >> Thanks in advance. >> Regards, >> >> winnok >> >> >> ___ >> winnok de vos >> >> >> academic assistant >> >> ghent university >> faculty of bioscience engineering >> dept. molecular biotechnology >> coupure links 653 >> 9000 ghent >> belgium >> >> tel. 0032 (0)9 264.59.71 >> www.molecularbiotechnology.ugent.be >> > |
Free forum by Nabble | Edit this page |