esrf-bliss / Lima

Library for Image Acquisition
https://lima1.rtfd.io
GNU General Public License v3.0
39 stars 71 forks source link

ROI #125

Open hayg25 opened 2 years ago

hayg25 commented 2 years ago

Dear All, I need to get the beam characteristics at Yag screen with noise (Dark current). Is there a way to select region of interest from the Lima Device server ? My problem is that BPM failed sometimes to locate the beam position, when we have background.

Thanks

laurent-claustre commented 2 years ago

Hi Hayg, yes you can set an ROI by using the attribute image_roi and set an crop on your detector. ROI parameters is a list of value as: X, Y, WIDTH, HEIGHT in pixel unit.

hayg25 commented 2 years ago

Hi Laurent, many thanks. By the way I am looking information concerning the methods behind BPMs, how it calculates the beam position. Where could I find some notes on that?

laurent-claustre commented 2 years ago

Hi Hayg, There is an article somewhere which describes the algorithm I will send you the file if can find it. In the mean time you may have a look on the Bpm C++ code, not so complicated, there are some comments into the code. The main file is: third-party/Processlib/tasks/src/Bpm.cpp

laurent-claustre commented 2 years ago

Hi Hayg, I will send you a "paper" which explains the principle and partially the algorithm choosen.

hayg25 commented 2 years ago

Great ! Thx

hayg25 commented 2 years ago

Hi Laurent, do you have the article you were talking about ? Thanks H

laurent-claustre commented 2 years ago

Hi @hayg25 , we are still looking for a pertinent paper or what ever which can describe well the algorithm.