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: NDPluginProcess Background subtraction UInt wrap around |
From: | Hugo Slepicka via Tech-talk <tech-talk at aps.anl.gov> |
To: | Laurenz Rettig <rettig at fhi-berlin.mpg.de> |
Cc: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Tue, 16 Mar 2021 15:26:19 -0700 |
Hi,
I'm having some trouble with the background subtraction in the
NDPluginProcess and UInt16 data type. Whenever the values would turn
negative due to the background subtraction, the UInt16 wraps around and
produces values close to 65536. What is the best way to avoid this this?
Thanks, Laurenz
--
Dr. Laurenz Rettig
Fritz Haber Institute of the Max Planck Society
Department of Physical Chemistry
Dynamics of Correlated Materials
Faradayweg 4-6
14195 Berlin, Germany
phone: +49-(0)30-8413 5225
email: rettig at fhi-berlin.mpg.de