ImageProcessing.Microkernel.DIAdapter

Provides adapters for di-containers


Keywords
di, adapter, microkernel, dependency-injection, di-container, affine-transformation, application-controller, color-matrix, contrast-optimization, convolution, cpu, decimal-math, event-aggregator, histogram-transformation, image-processing, image-rotation, image-scaling, morphology, multitier-architecture, mvp, ribbon-interface, unsafe-code, winforms
License
Apache-2.0
Install
Install-Package ImageProcessing.Microkernel.DIAdapter -Version 1.1.0

Documentation

Image Processing

Microkernel Guide&Demo for WPF (SDI), Winforms (MDI/SDI/TDI) and Console processes

Build Status

  1. Thesis
  2. Solutions
  3. Benchmarks
  4. NuGet

Thesis

The application was originally developed as an R&D work.

The original purpose was to research the possible advantages of grayscale images contrast optimization using a normal distribution regarding a uniform distribution. Two parameters such as the expectation and std allow to control relative luminance and contrast, respectively.

application window

Fig. 1 - The main view and transient views as tabs. The opened settings tab is a singleton view. The frame is taken from "Thomas the Tank Engine" series.



Initially, for experimental purposes was chosen a group of underexposed images.

original underexposed image

Fig. 2 - The original underexposed image.

After an optimization with a uniform distribution, there is a redundancy in bright areas of relative luminance. However, using a normal distribution it's possible to minimize this effect, achieving better details’ distinctiveness.

image transformed by uniform distribution

Fig. 3 - The histogram transformation by a uniform distribution.

An image transformed by a normal distribution with the expectation = 90 and std = 60

Fig. 4 - The histogram transformation by a normal distribution where µ = 90 and σ = 60.

To justify which image is better, regarding its contrast, one may use the definition of conditional variance:

where [z1, z2] is an interval of relative luminance.

Splitting the interval [0, 255] to 16 subintervals we may now use the definition above. Since we define contrast as statistical scattering, the definition of conditional variance may show the level of contrast on each specified interval.

application window

Fig. 5 - Using the definition of conditional variance on 16 intervals of relative luminance.

Thus, one may conclude that a normal distribution may represent better result regarding a uniform distribution on a group of underexposed images.

Architecture

architecture

Fig. 6 - The process architecture.

metrics

Fig. 7 - The process code metrics.


Benchmarks [CPU]

RGB Filters

Convolution


NuGet

ImageProcessing.Microkernel.DIAdapter

ImageProcessing.Microkernel.MVP

ImageProcessing.Microkernel.EntryPoint