Experimental Physics and Industrial Control System
|
Folks,
I have made the following changes to NDPluginProcess. Note that these break backwards compatibility, because I think it would otherwise add confusion and complexity.
- Renamed LowClip to LowClipThresh and HighClip to HighClipThresh.
- Added LowClipValue and HighClipValue.
- Pixels whose values are greater than HighClipThresh are replaced with HighClipValue.
- Pixels whose values are less than LowClipThresh are replaced with LowClipValue
I have attached these screenshots:
- NDProcess.png The medm screen with the new and modified widgets. The LowClipThresh=300, LowClipValue=0, HighClipThresh=1000, HighClipValue=0.
- WithoutClipping.png SimDetector image with low and high clipping disabled.
- WithClipping.png SimDetector imaging with low and high clipping enabled.
The new version is in the enhance_clip branch of ADCore on Github.
https://github.com/areaDetector/ADCore/tree/enhance_clip
Please let me know if this seems OK.
Mark
Specifically for Sirius applications, it would be useful to set all values above upper threshold to zero. If i understand the current plugin, it only replaces the
values above upper threshold with the upper threshold value itself, right?
Im thinking about a threshold that determine which plugins will be replaced and the actual replacement value
Thanks for your time,
Marco
I agree that the clipping should be made more flexible. I think it would be good to make this more general that replacing with 0 or the clip value. Users might want to replace the clip values with non-zero user-specified values, for example
-1, -2, etc.
I will work on this soon.
Mark
-----Original Message-----
From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Wang Xiaoqiang via Tech-talk
Sent: Tuesday, August 15, 2023 1:18 AM
To: Marco A. Barra Montevechi Filho <marco.filho at lnls.br>;
tech-talk at aps.anl.gov
Subject: Re: Is there a maximum threshold plugin for areaDetector?
Hi Marco,
In the NDPluginProcess, there is a clipping option. It clamps the pixel values within a given range.
If by masking you mean zero the pixel value, there is no plugins I know of. I had such a need and wrote a request here,
https://github.com/areaDetector/ADCore/issues/492
Best
Xiaoqiang
On 8/14/23 21:11, Marco A. Barra Montevechi Filho via Tech-talk wrote:
> Hi all!
>
> Im using BadPixel plugin to mask some bad pixels in our detectors. The thing is some pixels only show broken values from time to time...
>
> Is there any plugin that would mask any pixel with a value above a certain configurable threshold value?
>
> In a similar line of thought, I noticed the statistics plugin allows the user to configure a minimal value (centroidThreshold) below which the pixel value is not going to be considered. Is there something similar for a *maximum* value?
>
> Thanks for any hints,
>
> Marco
>
> Aviso Legal: Esta mensagem e seus anexos podem conter informações confidenciais e/ou de uso restrito. Observe atentamente seu conteúdo e considere eventual consulta ao remetente antes de copiá-la, divulgá-la ou distribuí-la. Se você recebeu esta mensagem
por engano, por favor avise o remetente e apague-a imediatamente.
>
> Disclaimer: This email and its attachments may contain confidential and/or privileged information. Observe its content carefully and consider possible querying to the sender before copying, disclosing or distributing it. If you have received this email by
mistake, please notify the sender and delete it immediately.
>
|
Attachment:
NDProcess.png
Description: NDProcess.png
Attachment:
WithoutClipping.jpg
Description: WithoutClipping.jpg
Attachment:
WithClipping.jpg
Description: WithClipping.jpg
- Replies:
- Re: Is there a maximum threshold plugin for areaDetector? Wang Xiaoqiang via Tech-talk
- References:
- Is there a maximum threshold plugin for areaDetector? Marco A. Barra Montevechi Filho via Tech-talk
- Re: Is there a maximum threshold plugin for areaDetector? Wang Xiaoqiang via Tech-talk
- RE: Is there a maximum threshold plugin for areaDetector? Mark Rivers via Tech-talk
- Re: Is there a maximum threshold plugin for areaDetector? Marco A. Barra Montevechi Filho via Tech-talk
- Navigate by Date:
- Prev:
Re: Is there a maximum threshold plugin for areaDetector? Maren Purves via Tech-talk
- Next:
Re: Is there a maximum threshold plugin for areaDetector? Matt Newville via Tech-talk
- 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
- Navigate by Thread:
- Prev:
Re: Is there a maximum threshold plugin for areaDetector? Maren Purves via Tech-talk
- Next:
Re: Is there a maximum threshold plugin for areaDetector? Wang Xiaoqiang via Tech-talk
- 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
|
ANJ, 16 Aug 2023 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|