1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 <2021> 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 <2021> 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Arbitrary rotation angle with areaDetector Plugin |
From: | "Wlodek, Jakub via Tech-talk" <tech-talk at aps.anl.gov> |
To: | Mark Rivers <rivers at cars.uchicago.edu>, Michael Davidsaver <mdavidsaver at gmail.com>, "Smith, William" <william.smith at helmholtz-berlin.de> |
Cc: | "Kazarski, Sebastian" <sebastian.kazarski at helmholtz-berlin.de>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Thu, 29 Jul 2021 19:55:40 +0000 |
Hi Will,
There are a few references to external plugins in the areaDetector configuration, such as ADPluginEdge for example - you could take a look at those. I think these files:
areaDetector/configure/RELEASE_PRODS.local -
https://github.com/areaDetector/areaDetector/blob/f866e7e8e0701c269a790079a96c56784b46ad1f/configure/EXAMPLE_RELEASE_PRODS.local#L55
areaDetector/ADCore/ADApp/commonDriverMakefile -
https://github.com/areaDetector/ADCore/blob/c465de3e85bd174dc44ee75d1baf9141db893794/ADApp/commonDriverMakefile#L222
would be good as a start.
Hope that helps!
Jakub
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Smith, William via Tech-talk <tech-talk at aps.anl.gov>
Sent: Thursday, July 29, 2021 3:47 PM To: Mark Rivers <rivers at cars.uchicago.edu>; Michael Davidsaver <mdavidsaver at gmail.com> Cc: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>; Kazarski, Sebastian <sebastian.kazarski at helmholtz-berlin.de> Subject: RE: Arbitrary rotation angle with areaDetector Plugin Hi Mark,
I am not sure I understand exactly. I know what you mean generally, I understand how to include support modules in other applications or support modules, but I don't know how to do it with areaDetector. Where are the other NDPlugins defined? Can I just copy the source code and database from Michael's NDWarp into some location in areaDetector core and rebuild? Thanks Will -----Original Message----- From: Mark Rivers <rivers at cars.uchicago.edu> Sent: Thursday, July 29, 2021 8:56 PM To: Smith, William <william.smith at helmholtz-berlin.de>; Michael Davidsaver <mdavidsaver at gmail.com> Cc: Kazarski, Sebastian <sebastian.kazarski at helmholtz-berlin.de>; tech-talk at aps.anl.gov Subject: RE: Arbitrary rotation angle with areaDetector Plugin > This looks perfect. How do I include a new ND plugin in an existing area Detector installation? You need to recompile your areaDetector application to include this new plugin. You need to add it to the application dbd file and include the library in your application Makefile. Mark -----Original Message----- From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Smith, William via Tech-talk Sent: Thursday, July 29, 2021 11:01 AM To: Michael Davidsaver <mdavidsaver at gmail.com> Cc: tech-talk at aps.anl.gov; Kazarski, Sebastian <sebastian.kazarski at helmholtz-berlin.de> Subject: RE: Arbitrary rotation angle with areaDetector Plugin Hi Michael, This looks perfect. How do I include a new ND plugin in an existing area Detector installation? Will -----Original Message----- From: Michael Davidsaver <mdavidsaver at gmail.com> Sent: Thursday, July 29, 2021 5:10 PM To: Smith, William <william.smith at helmholtz-berlin.de> Cc: Kazarski, Sebastian <sebastian.kazarski at helmholtz-berlin.de>; tech-talk at aps.anl.gov Subject: Re: Arbitrary rotation angle with areaDetector Plugin On 7/29/21 7:22 AM, Smith, William via Tech-talk wrote: > Hi, > > > > We would like to rotate an image using area detector by an arbitrary angle, much like the python function imutils.rotate_bound which rotates an image and doesn’t cut off the corners. Ultimately we are trying to get statistics of an ellipse which is not aligned on x and y. > > > > Has anybody extended the AreaDetector NDTransform plugin, or written another one to do anything like this? What are other people’s approaches? It may well be stale at this point, but my NDWarp plugin can do this. https://github.com/mdavidsaver/ndwarp/blob/2eb73105dd886c9dc89e96b3d77661b9bf770a02/warpApp/Db/NDWarp.template#L40 Rotation being one case of the possible coordinate transformations. The name "warp" coming from skimage, which I used for prototyping. https://urldefense.com/v3/__https://scikit-image.org/docs/dev/api/skimage.transform.html*skimage.transform.warp__;Iw!!P4SdNyxKAPE!UoZAMhhQoDunUcHRH1cYxMCLAKIZmIQ9IE3YwpKJGpDISyTmXFgGbtr8odiDEe7x$ ________________________________ Helmholtz-Zentrum Berlin für Materialien und Energie GmbH Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V. Aufsichtsrat: Vorsitzender Dr. Volkmar Dietz, stv. Vorsitzende Dr. Jutta Koch-Unterseher Geschäftsführung: Prof. Dr. Jan Lüning (Sprecher), Prof. Dr. Bernd Rech, Thomas Frederking Sitz Berlin, AG Charlottenburg, 89 HRB 5583 Postadresse: Hahn-Meitner-Platz 1 14109 Berlin Deutschland ________________________________ Helmholtz-Zentrum Berlin für Materialien und Energie GmbH Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V. Aufsichtsrat: Vorsitzender Dr. Volkmar Dietz, stv. Vorsitzende Dr. Jutta Koch-Unterseher Geschäftsführung: Prof. Dr. Jan Lüning (Sprecher), Prof. Dr. Bernd Rech, Thomas Frederking Sitz Berlin, AG Charlottenburg, 89 HRB 5583 Postadresse: Hahn-Meitner-Platz 1 14109 Berlin Deutschland |