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