An open API service indexing awesome lists of open source software.

https://github.com/ij-plugins/ijp-debayer2sx

Raw Bayer pattern to color image converters
https://github.com/ij-plugins/ijp-debayer2sx

bayer-filter bayer-pattern imagej imagej-plugins

Last synced: 4 months ago
JSON representation

Raw Bayer pattern to color image converters

Awesome Lists containing this project

README

          

# ijp-DeBayer2SX
[Bayer-pattern][bayer-filter] image to color image converters.

[![Scala CI](https://github.com/ij-plugins/ijp-DeBayer2SX/actions/workflows/scala.yml/badge.svg)](https://github.com/ij-plugins/ijp-DeBayer2SX/actions/workflows/scala.yml)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/net.sf.ij-plugins/ijp-debayer2sx-core_2.13/badge.svg)](https://maven-badges.herokuapp.com/maven-central/net.sf.ij-plugins/ijp-debayer2sx-core_2.13)
[![Scaladoc](https://javadoc.io/badge2/net.sf.ij-plugins/ijp-debayer2sx-core_2.13/scaladoc.svg)](https://javadoc.io/doc/net.sf.ij-plugins/ijp-debayer2sx-core_2.13)

Demasaicing (Bayer patter reconstruction) algorithms implemented, all support 8 bit and 16 bit input:

* __DDFPD__ - published in: "Demosaicing with Directional Filtering and a Posteriori Decision", D. Menon, S. Andriani,
and G. Calvagno, _IEEE Trans. Image Processing_, vol. 16 no. 1, Jan. 2007. Versions with and without refining are
provided.
* __Replication__ - from [Debayer plugin][debayer]
* __Bilinear__ - from [Debayer plugin][debayer]
* __Smooth Hue__ - from [Debayer plugin][debayer]
* __Adaptive Smooth Hue__ - Adaptive Smooth Hue algorithm (Edge detecting) from [Debayer plugin][debayer]

## Installing Plugins in ImageJ

### ImageJ

#### Option 1

Prebuild binaries are published with each [Release](https://github.com/ij-plugins/ijp-DeBayer2SX/releases).

1. Look for in the asset section for an "ijp-debayer2sx_v.*.zip" file,
2. download and unzip into ImageJ's `plugins` directory. It should create subdirectory "ij-plugins".
3. Restart ImageJ

#### Option 2

DeBayer2SX is also a part of the ij-plugins-bundle. You can download from
its [Release](https://github.com/ij-plugins/ij-plugins-bundle/releases) page.

### ImageJ2/FIJI

DeBayer2SX is a part of the ij-plugins-bundle that is also distributed for FIJI/ImageJ2
as [IJ-Plugins Update Site](https://sites.imagej.net/IJ-Plugins/): "https://sites.imagej.net/IJ-Plugins/"

## Project Structure

* __ijp-debayer2sx-plugins__ - the front-end ImageJ plugins for end-user.
* __ijp-debayer2sx-core__ - the backend implementation of the algorithms. Intended to be used as a library by a
developer.

## ImageJ Plugins

Plugins install by default under "plugins" > "IJ-Plugins"

* __DeBayer2__ - convert Bayer-pattern image to color image using various algorithms.
* __Make Bayer__ - convert color image to a Bayer-pattern image.

More details are in the [Wiki].

## Using as library

`ijp-DeBayer2SX` can be used as a stand-alone library, add following dependency to your SBT:

```scala
"net.sf.ij-plugins" %% "ijp-debayer2sx-core" % _version_
```

## Developer Notes

The project is using SBT as the build system.

A convenient way to compile and run plugins in ImageJ plugins from SBT prompt is to select `ijp_debayer2sx_plugins` project and use `ijRun` command:

```
> sbt
sbt:ijp-debayer2sx> project ijp_debayer2sx_plugins
sbt:ijp_debayer2sx_plugins> ijRun

```

[bayer-filter]: https://en.wikipedia.org/wiki/Bayer_filter

[debayer]: https://github.com/ij-plugins/ijp-DeBayer2SX/wiki/DeBayer1

[Wiki]: https://github.com/ij-plugins/ijp-DeBayer2SX/wiki