• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ICRAR / libprofit / 317
91%
master: 90%

Build:
Build:
LAST BUILD BRANCH: devel
DEFAULT BRANCH: master
Ran 12 Jun 2019 08:46AM UTC
Jobs 1
Files 47
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
317

push

travis-ci

rtobar
Correctly capturing flux when convolving

This is the final bit needed to implement correct flux capturing in
libprofit. Until now libprofit didn't capture flux outside of the
"drawing" region ("outside" of the model, or outside of the mask when a
mask is present) when performing convolution. This however is a feature
that needs to be taken into account if we want to correctly generate
convolved images.

To capture flux correctly we need to enlarge the "drawing" area in such
a way that when convolution gets done we can capture the flux outside of
the original model boundaries. When no mask is involved we enlarge the
model by the half of the PSF dimensions on each side, and let the
profiles know about the new origin. Additionally, when a mask is
involved, we need to enlarge *its* coverage. Finally, if a mask is
sufficiently small we can avoid enlarging the model altogether, but we
still need to convolve the mask.

This image enlargement is something new we have added to libprofit, and
it's probably what the "no crop" feature on the R side initially was
meant to be for. However, in libprofit so far we have had the "no crop"
feature to mean exactly "don't crop enlargements coming from the
convolution step", because there was nothing else to crop out. This
behaviour will be preserved for the time being, but probably a change in
semantics will be required in the future to make the code simpler.

New unit tests have been added to make sure this feature is working
across our different convolvers, for different mask sizes and
placements, and with/without finesampling enabled. The check we perform
is simple: with a given psf we generate a model image (A); we then use
masks of different sizes and at different placements and generate a
model image (B) for each of them. For all these mask combinations the
image pixels *within the mask's region* should be the exact same for A
and B.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>

1721 of 1909 relevant lines covered (90.15%)

7203898.59 hits per line

Jobs
ID Job ID Ran Files Coverage
6 317.6 (COMPILER=g++-6 CXXFLAGS="-coverage" LDFLAGS="-coverage") 12 Jun 2019 08:46AM UTC 0
90.15
Travis Job 317.6
Source Files on build 317
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #317
  • 9173e789 on github
  • Next Build on correct-flux-capturing (#318)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc