question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reasonable box_size for Background2D?

See original GitHub issue

The 2D Background and Noise Estimation states that:

Background2D requires the size of the box (box_size) in which to estimate the background. Selecting the box size requires some care by the user. The box size should generally be larger than the typical size of sources in the image, but small enough to encapsulate any background variations.

All other parameters have some reasonable default values that can be used, but not box_size.

Is there a reasonable rule of thumb for selecting this value? I’ve found that (for some frames I’m processing) a value of ~7xFWHM produces reasonably cleaned images. Smaller values produce a noisy cleaned image (data - bckg) and larger values show no improvements.

Is this a reasonable rule or it’s this the case for my images only? Can a reasonable general rule even be stated? If so, could it be added to the docs.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
larrybradleycommented, Nov 8, 2017

Thanks, @Gabriel-p. I tried to be descriptive as possible for recommended values, but I think this is one parameter that does require some trial and error on the part of the user for their particular scene.

1reaction
larrybradleycommented, Nov 7, 2017

Yes, for that particular case one could probably define a reasonable box size. Without doing a lot of tests, I’m not sure what that size is though. Is that your case where 7 * FWHM gave good results? If there is a good box size recommendation for that particular case, I’d be happy to include it in the docs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Background2D — photutils 1.6.0 - Read the Docs
Class to estimate a 2D background and background RMS noise in an image. The background is estimated using (sigma-clipped) statistics in each box...
Read more >
photutils Documentation - Read the Docs
We start by creating a Background2D object using a box size of 50x50 and a 3x3 median filter. We will estimate the.
Read more >
Untitled
Berghaus jalan ii 60+10, Forest background 2d, Toyota kijang lgx 2004 silver, ... Jbg companies alexandria va, Opengl box selection, Carbs in vegetables...
Read more >
Free Vector | Under the sea - background for video conferencing
Cheap Background, Buy Quality Consumer Electronics Directly from China Suppliers:LIFE ... 8.98US $ |LIFE MAGIC BOX Background Photography Under Sea Baby ...
Read more >
Working in 3D with BA, help please. - OpenBuildings | AECOsim ...
... really using it that fully I suspect) to produce 'background' 2D 'views', ... that the "Master model" is not yet feasible on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found