Are there any .NET tools for image distortion / distortion?

I would like to be able to programmatically distort the image in C #. In particular, I would like to reload the image in space so that the center pixels are expanded and the peripheral pixels take up proportionally less space. Think of red-eye lenses. Kinda

Are there any .NET tools that can do this? I do not mind if they are built into the .NET kernel or addon.

+5
source share
3 answers

Disclaimer: I work for Atalasoft

Our free DotImage Photo Free SDK with photography can do this:

http://www.atalasoft.com/free-dotnet-image-sdk

Atalasoft.Imaging.ImageProcessing.Transforms.LensTransform. -

AtalaImage img = new AtalaImage("file.jpg");
LensTransform cmd = new LensTransform();
cmd.Radius = 100;
cmd.Offset = new Point(100, 100); // set the center
AtalaImage img2 = cmd.Apply(img).Image;
+1

... ImageMagick API , .

http://www.imagemagick.org/script/api.php

.NET . , . , .

+1

WPF.

, , Direct3D . , .

In many ways, this is easier than writing them in C # or C, because you don’t have to worry about addressing color samples in the image buffer, checking the range and correctly sorting through your data, since all this is processed by the video card hardware.

Here's a link to channel video 9 showing examples of effects in the wpffx sample library.

I think the "smooth increase" is very close to what you want.

+1
source

All Articles