<commit_before>compositing
===========

## Author: <NAME>
## Version: 2014-12-12
## License: BSD 3-clause, please see ![LICENSE](./LICENSE) file

alpha-blending (image compositing) of arbitrary number of
monochromatic 2d images. Implements algorithms developed in [Porter &
Duff (1984)](http://dl.acm.org/citation.cfm?id=808606) and [Smith
(1995)](http://www.cs.princeton.edu/courses/archive/fall00/cs426/papers/smith95a.pdf). Image
cubes can be loaded from arrays, or FITS files, etc. Any valid `pylab`
color specification can be assigned to each image slice. The
individual alphas (values of opaqueness) for all slices will be
computed automatically such that each slice contributes 1/N to the
total image. The alphas can also be assigned manually (per-slice).

See also the extensive docstrings of classes `Compositing`, `Image`,
`Cube`, `ClumpyImage` for documentation.

####Contents of this dir####

An *Ipython Notebook* file is provided to see the classes in
action. If you have Ipython notebook installed, launch

```ipython notebook```

A window in your browser should pop up. There, load the file
`compositing.ipynb` and play the cells. Alternatively, you can use the
online [Ipython notebook viewer](http://nbviewer.ipython.org/) to play
the file.

`compositing.md` is a static *Markdown* view of the evaluated Ipython
notebook.

`IMG-AA00-TORUSG-sig15-i60-Y010-N01-q0.0-tv005.0.fits.gz` is an
example FITS file used in the notebook. It's a *CLUMPY* model, with
nine 2d brightness maps of torus emission at different wavelengths.<commit_msg>Edit README.md<commit_after>compositing
===========

** Author:** <NAME>
** Version:** 2014-12-12
** License:** BSD 3-clause, please see [LICENSE](./LICENSE) file

alpha-blending (image compositing) of arbitrary number of
monochromatic 2d images. Implements algorithms developed in [Porter &
Duff (1984)](http://dl.acm.org/citation.cfm?id=808606) and [Smith
(1995)](http://www.cs.princeton.edu/courses/archive/fall00/cs426/papers/smith95a.pdf). Image
cubes can be loaded from arrays, or FITS files, etc. Any valid `pylab`
color specification can be assigned to each image slice. The
individual alphas (values of opaqueness) for all slices will be
computed automatically such that each slice contributes 1/N to the
total image. The alphas can also be assigned manually (per-slice).

See also the extensive docstrings of classes `Compositing`, `Image`,
`Cube`, `ClumpyImage` for documentation.

####Contents####

An *Ipython Notebook* file is provided to see the classes in
action. If you have Ipython notebook installed, launch

```ipython notebook```

A window in your browser should pop up. There, load the file
`compositing.ipynb` and play the cells. Alternatively, you can use the
online [Ipython notebook viewer](http://nbviewer.ipython.org/) to play
the file.

`compositing.md` is a static *Markdown* view of the evaluated Ipython
notebook.

`IMG-AA00-TORUSG-sig15-i60-Y010-N01-q0.0-tv005.0.fits.gz` is an
example FITS file used in the notebook. It's a
[CLUMPY](https://www.clumpy.org) model, with nine 2d brightness maps
of torus emission at different wavelengths.
{'fraction_non_alphanumeric': 0.10922485586162717, 'fraction_numerical': 0.032030749519538756, 'mean_word_length': 4.9147727272727275, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5637317', 'n_tokens_mistral': 1055, 'n_tokens_neox': 944, 'n_words': 377}