Git Product home page Git Product logo

rank_roi's Introduction

rank_roi

The CIAO roi tool is used to convert say a source list into a stack of region files, aka Region Of Interest (not return on investment).

The roi tool has a lot of options to control things like the background region, including the detector edges via the field of view file, etc.

When regions overlap it has several group options.

  • group=group creates 1 region file per bundle of sources that overlap.
  • group=individual creates 1 region file per source and ignores any overlaps.
  • group=exclude creates 1 region file per source. Any overlapping sources are excluded from each other.

group=exclude

The exclude setting is the most common usages of roi. This is used in scripts like srcflux. The complaint with this mode is that any overlapping source area is never counted given how the region logic is implemented.

The problem for roi is that it doesn't know how to choose which overlapping source the overlapping area should go to.

FAP has determined in the context of CSC2, that the overlapping area should go to the brightest source.

Enter this script rank_roi. This script takes in a stack of roi regions generated with group=exclude, assigns a metric to each source region (in this case the number of counts; technically sum of pixel values in input image), and modifies the roi files to assign any overlapping area to the brightest source (highest metric).

Example

The figure below shows a map ID'ing the source regions created using roi (on the right), and with rank_roi applied (on the left). The colors are random and map to the source ID; black colored pixels unassigned to any source.

roi example files

In the Right frame, the area between overlapping sources is unassigned (black). In the Left frame, the source regions have been ranked based on the number of counts and the area has been assigned to the brightest source.

rank_roi's People

Contributors

kglotfelty avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.