getROI from MATLAB

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

getROI from MATLAB

Nutan1
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: getROI from MATLAB

Arthur D. Edelstein
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,

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

--
View this message in context: http://micro-manager.3463995.n2.nabble.com/getROI-from-MATLAB-tp6937095p6937095.html
Sent from the Micro-Manager mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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


------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: getROI from MATLAB

Enrique
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: getROI from MATLAB

Arthur D. Edelstein
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,


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


--
View this message in context: http://micro-manager.3463995.n2.nabble.com/getROI-from-MATLAB-tp6937095p6937265.html
Sent from the Micro-Manager mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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


------------------------------------------------------------------------------
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
Loading...