Closed erwinbonsmatopic closed 2 years ago
@jonbinney Can you have a look at this?
Thanks, this looks almost ready to merge! Two more requests:
isShadow
methods in the header, describing when to use each?Thanks, this looks almost ready to merge! Two more requests:
- could you add comments before each of the
isShadow
methods in the header, describing when to use each?- i think the use of private and friend class here is unneeded complexity, and others may want to use the new, faster method. Could you remove the private and friend stuff and make the new isShadow public?
Code reworked as requested.
Oops, sorry, one last thing to change: could you remove the empty desctructor for the detector class?
Oops, sorry, one last thing to change: could you remove the empty desctructor for the detector class?
Done. Also removed the lingering friend declaration that was not needed anymore.
Thanks for all your work on this - it is a big improvement in speed!
Improve performance of scan shadow filter.
Changes:
Together this results in speed-up of update method by more than factor three.
Added test to verify that lookup arrays is updated when needed. Updated detector test to include negative angles (and more generally, match usage of detector in filter).