|
Hi Everyone,
I am using Micro Manager through Matlab. I want to use the getROI function; however, it seems that its arguments are addresses and I have not been able to figure out how to handle that from MATLAB. I have tried using normal MATLAB variables as well as the pointers created through libpointer function but to no avail. Would be grateful if someone knowledgeable could point me to right direction. Thanks, Santosh |
|
Hi Santosh,
I don't know how to do that in MATLAB directly, but you can use the alternative function for convenience: gui.getROI() This returns a java Rectangle object. Best regards, Arthur On Thu, Oct 27, 2011 at 9:44 AM, Nutan1 <[hidden email]> wrote: Hi Everyone, ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ micro-manager-general mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/micro-manager-general |
|
Hi,
I also had Santosh question. And eventhough the gui command is an option, I prefer using micromanager directly though the core. Everything is just smoother and faster. Enrique |
|
Hi Enrique and Santosh,
Here is the java code for gui.getROI(): public Rectangle getROI() throws MMScriptException { // ROI values are given as x,y,w,h in individual one-member arrays (pointers in C++): int[][] a = new int[4][1]; try { core_.getROI(a[0], a[1], a[2], a[3]); } catch (Exception e) { throw new MMScriptException(e.getMessage()); } // Return as a single array with x,y,w,h: return new Rectangle(a[0][0], a[1][0], a[2][0], a[3][0]); } You will need to do something similar in Matlab (including creating java arrays). Best regards, Arthur On Thu, Oct 27, 2011 at 10:28 AM, Enrique <[hidden email]> wrote: Hi, ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ micro-manager-general mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/micro-manager-general |
| Powered by Nabble | See how NAML generates this page |
