F # Tour 7-Getting Started with image processing

Source: Internet
Author: User

First of all, a grand introduction of today's protagonist: Imagefactory (http://imageprocessor.org/). Although I did not use the library in the actual work, but it was a clean way to impress me, a long time ago saved. The development language of this library is C#,nuget, which provides a series of methods that can be chained to manipulate pictures. The key point, it is open source, the code is very clear, there are any bugs and uncomfortable can you want to change how to change.

Next, I need to mention that I have no understanding of the image processing. So, this article is a record of my getting started picture processing. Of course, rectangular circular lines, such as the basis of RGB, not specifically mentioned.

First, the picture format
Imagefactory has built-in support for image formats, and is naturally a common image format. Including:
1, Bmp:bitmap, bitmap, using bit map storage format, in addition to image depth optional, do not use any other compression.
2, Gif:graphics Interchange Format, divided into static GIF and animated GIF, is a compressed bitmap format.
3, JPG (JPEG): Joint Photographic Experts GROUP, you can choose the compression level.
4. png:portable Network Graphic format, designed to attempt to replace GIF and TIFF file formats while adding features not available in the GIF file format.
5, TIF (TIFF): Tag image File format, is a flexible bitmap format, mainly used to store images including photos and art pictures.

Second, image processing
Alpha Transparency
Changes the opacity of the current image.
Alpha (int percentage) [0,100]

Autorotate rotation
Performs auto-rotation to ensure that EXIF defined rotation are reflected in the final image.
Autorotate ()

BackgroundColor background Color
Changes the background color of the current image.
BackgroundColor (color color)

Brightness brightness
Changes the brightness of the current image.
Brightness (int percentage) [-100,100]

Constrain constraints
Constrains the current image, resizing it-fit within the given dimensions whilst keeping its aspect ratio. Produces the same output as the Resize method using Resizemode.max
Constrain (size size)

Contrast contrast ratio
Changes the contrast of the current image.
Contrast (int percentage) [-100,100]

Crop cropping
Crops the current image to the given location and size.
Crop (Rectangle Rectangle)
Crop (Croplayer Croplayer)

Detectedges Edge Detection
Detects the edges in the current image using various one and both dimensional algorithms. If the greyscale parameter is set to false the detected edges would maintain the pixel colors of the originl image.
Detectedges (iedgefilter filter, bool greyscale = TRUE)
Iedgefilter = Kayyaliedgefilter, Kirschedgefilter, Laplacian3x3edgefilter, Prewittedgefilter ...

Entropycrop Entropy clipping (clipping based on the threshold value of information)
Crops an image to the area of greatest entropy. This method works best with images containing large areas of a single color or similar colors around the edges.
Entropycrop (Byte threshold = 128)

Filter filter
Applies a filter to the current image. Use the Matrixfilters class to assign the correct filter
Filter (Imatrixfilter matrixfilter)
Imatrixfilter = Blackwhite, Gotham, Lomograph, Polaroid ...

Flip flipping
Flips the current image either horizontally or vertically.
Flip (bool flipvertically)

Format formats
Sets the output format of the current image to the matching
Format (isupportedimageformat format)
Isupportedimageformat = Bitmapformat, Jpegformat, Gifformat ...

Gaussianblur Gaussian Blur
Uses a Gaussian kernel to blur the current image.
Gaussianblur (int size)
Gaussianblur (Gaussianlayer Gaussianlayer)

Gosrue of Gaussiansharpen
Uses a Gaussian kernel to sharpen the current image.
Gaussiansharpen (int size)
Gaussiansharpen (Gaussianlayer Gaussianlayer)

Hue Hue
Alters the hue of the current image changing the overall color.
Hue (int degrees, bool rotate = false)

Mask cover
Applies the given image mask to the current image. Any area containing transparency withing the mask would be a removed from the original image. If The mask is larger than the image it'll be resized to match the images dimensions.
Mask (Image imagemask, point-point = null)

Overlay coverage
Adds a image overlay to the current image. If the overlay is larger than the image it would be a resized to match the images dimensions.
Overlay (Imagelayer Imagelayer)

Pixelate pixelated (Mosaic)
Pixelates an image with the given size.
pixelate (int pixelsize, Rectangle? Rectangle = null)

Quality picture quality
Alters the output quality of the current image. This method would only effect the output quality of JPEG images.
Quality (int percentage) [0,100]

Replacecolor Replace Color
Replaces a color within the current image.
Replacecolor (color target, color replacement, int fuzziness = 0)

Resize change Size
Resizes the current image to the given dimensions. If EXIF metadata is to be preserved the information contained within would also be updated to match.
Resize (size size)
Resize (Resizelayer Resizelayer)

Resolution resolution
Changes the horizontal and vertical resolution of the image. If EXIF metadata is to be preserved the information contained within would also be updated to match.
Resolution (int w, int h)

Rotate rotation
Rotates the current image by the given angle without clipping.
Rotate (int degrees)

RoundedCorners Round rounded corners
Adds rounded corners to the current image.
roundedcorners (int radius)
RoundedCorners (Roundedcornerlayer Roundedcornerslayer)

Saturation of saturation
Changes the saturation of the current image.
saturation (int percentage)

Tint Chroma
Tints the current image with the given color
Tint (color color)

Vignette Halo Shadow
Adds a vignette image effect to the current image.
Vignette (color color)

Watermark Watermark
Adds a text based watermark to the current image.
Watermark (Textlayer Textlayer)

Third, try
Finally, let's try the effect.

F # Tour 7-Getting Started with image processing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.