Skip to content

Latest commit

 

History

History
105 lines (76 loc) · 4.29 KB

README.md

File metadata and controls

105 lines (76 loc) · 4.29 KB

DotImaging logo

Build passing NuGet packages version

DotImaging - .NET array as imaging object
The framework sets focus on .NET native array as primary imaging object, offers extensibility support via extensions, and provides unified platform-abstract imaging IO API.

So why DotImaging ?

  • leverages existing .NET structures
  • portable - designed for ASP.NET vNext
  • lightweight (no 3rd party dependencies), but powerful
  • so simple, you don't need a help file

Libraries / NuGet packages

//convert to grayscale and flip
Bgr<byte>[,] image = new Bgr<byte>[480, 640]; //or load it (IO package)
image.SetValue(Bgr<byte>.Red);

Gray<byte>[,] grayIm = image.ToGray()
                               .Flip(FlipDirection.Horizontal);
  • DotImaging.IO
    A unified API for IO image access (camera, file, image directory). Portable image loading/saving.

    Tutorial: Portable Imaging IO (update pending)

//create camera (file or image-directory) capture
var reader = new CameraCapture();

reader.Open();

//read single frame
var frame = reader.ReadAs<Bgr<byte>>();

reader.Close();
//create a managed image
Bgr<byte>[,] image = ...; 

//get the modified blue channel 
var modifiedImage = image.AsEnumerable()
                            .Select(x => x.B / 2)
   						 .ToArray2D(image.Size());
//create a managed image
var image = new Bgr<byte>[480, 640];

//draw something
image.Draw(new Rectangle(50, 50, 200, 100), Bgr<byte>.Red, -1);
image.Draw(new Circle(50, 50, 25), Bgr<byte>.Blue, 5);
var image = new Gray<byte>[240, 320];
var bmp = image.ToBitmap(); //to Bitmap

var imageFromBmp = bmp.ToArray() as Bgr<byte>[,]; //from Bitmap

Getting started

  • Just pick what you need. An appropriate readme file will be shown upon selected NuGet package installation.
  • Documentation: Offline - unblock after download! </br/>
  • Samples

Want image processing algorithms ?

The framework is the foundation for Accord.NET Extensions which exposes a full power of Accord.NET through extensions!

How to Engage, Contribute and Provide Feedback

Remember: Your opinion is important and will define the future roadmap.

  • questions, comments - message on Github, or write to: darko.juric2 [at] gmail.com
  • spread the word

Final word

If you like the project please star it in order to help to spread the word. That way you will make the framework more significant and in the same time you will motivate me to improve it, so the benefit is mutual.