All Projects → Nyx0uf → Swiftyimages

Nyx0uf / Swiftyimages

Licence: mit
A set of efficient extensions and classes for manipulating images and colors.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Swiftyimages

Is Now Illegal
🚫 A NERD protest against Trump's Immigration ban
Stars: ✭ 1,392 (+1154.05%)
Mutual labels:  image-processing
Gift
Go Image Filtering Toolkit
Stars: ✭ 1,473 (+1227.03%)
Mutual labels:  image-processing
Intro To Cv Ud810
Problem Set solutions for the "Introduction to Computer Vision (ud810)" MOOC from Udacity
Stars: ✭ 110 (-0.9%)
Mutual labels:  image-processing
Supper Resolution
Super-resolution (SR) is a method of creating images with higher resolution from a set of low resolution images.
Stars: ✭ 105 (-5.41%)
Mutual labels:  image-processing
Self Driving Car
A End to End CNN Model which predicts the steering wheel angle based on the video/image
Stars: ✭ 106 (-4.5%)
Mutual labels:  image-processing
Neural Doodle
Turn your two-bit doodles into fine artworks with deep neural networks, generate seamless textures from photos, transfer style from one image to another, perform example-based upscaling, but wait... there's more! (An implementation of Semantic Style Transfer.)
Stars: ✭ 9,680 (+8620.72%)
Mutual labels:  image-processing
Boxdetection
A Box detection algorithm for any image containing boxes.
Stars: ✭ 104 (-6.31%)
Mutual labels:  image-processing
Ios Rubik Solver
An iOS app that detects a 3x3 Rubik's cube, recognizes the color of all cubies, solves it and provides a 3D visualisation of the solving process.
Stars: ✭ 111 (+0%)
Mutual labels:  image-processing
Serverless Image Processor
AWS Lambda image processor
Stars: ✭ 106 (-4.5%)
Mutual labels:  image-processing
Deltacv
An open-source high performance library for image processing
Stars: ✭ 110 (-0.9%)
Mutual labels:  image-processing
Photomosaic Generator
photomosaic generator (image to image, video to video)
Stars: ✭ 106 (-4.5%)
Mutual labels:  image-processing
Uav Mapper
UAV-Mapper is a lightweight UAV Image Processing System, Visual SFM reconstruction or Aerial Triangulation, Fast Ortho-Mosaic, Plannar Mosaic, Fast Digital Surface Map (DSM) and 3d reconstruction for UAVs.
Stars: ✭ 106 (-4.5%)
Mutual labels:  image-processing
Handwriter
A smart program to convert digital document to hand-written document
Stars: ✭ 108 (-2.7%)
Mutual labels:  image-processing
Blind image quality toolbox
Collection of Blind Image Quality Metrics in Matlab
Stars: ✭ 105 (-5.41%)
Mutual labels:  image-processing
Pyrate
A Python tool for estimating velocity and time-series from Interferometric Synthetic Aperture Radar (InSAR) data.
Stars: ✭ 110 (-0.9%)
Mutual labels:  image-processing
Computational Graphics Thu 2018
Computational Graphics - THU Spring 2018
Stars: ✭ 104 (-6.31%)
Mutual labels:  image-processing
Sod
An Embedded Computer Vision & Machine Learning Library (CPU Optimized & IoT Capable)
Stars: ✭ 1,460 (+1215.32%)
Mutual labels:  image-processing
Eos
A lightweight 3D Morphable Face Model fitting library in modern C++14
Stars: ✭ 1,579 (+1322.52%)
Mutual labels:  image-processing
L1stabilizer
🎥 Video stabilization using L1-norm optimal camera paths.
Stars: ✭ 111 (+0%)
Mutual labels:  image-processing
Nvidia Gpu Tensor Core Accelerator Pytorch Opencv
A complete machine vision container that includes Jupyter notebooks with built-in code hinting, Anaconda, CUDA-X, TensorRT inference accelerator for Tensor cores, CuPy (GPU drop in replacement for Numpy), PyTorch, TF2, Tensorboard, and OpenCV for accelerated workloads on NVIDIA Tensor cores and GPUs.
Stars: ✭ 110 (-0.9%)
Mutual labels:  image-processing

SwiftyImages

SwiftyImages is the continuation of NYXImagesKit, it's more modern, uses Swift 3 and requires at least iOS 9.3.

It's a framework which regroups a collection of useful extensions and classes to interact with images and colors.

UIImage / CGImage extensions

Filtering

  1. Brighten
  2. Contrast adjustment
  3. Edge detection
  4. Emboss
  5. Gamma correction
  6. Grayscale
  7. Invert
  8. Opacity
  9. Sepia
  10. Sharpen
  11. Unsharpen
  12. Blur

Masking

This extension is composed of a single method which allows to mask an image with another one, you just have to create the mask image you desire.

let maskedImage = myImage.masked(withImage: maskImage)

Resizing

This extension can be used to crop to scale images.

Cropping

let croppedImage = myImage.cropped(toSize: CGSize(width, height))

You can crop your image by 9 different ways :

  1. Top left
  2. Top center
  3. Top right
  4. Bottom left
  5. Bottom center
  6. Bottom right
  7. Left center
  8. Right center
  9. Center

Scaling

You have the choice between two methods to scale images, the two methods will keep the aspect ratio of the original image.

let scaledImage1 = myImage.scaled(factor: 0.5)
let scaledImage2 = myImage.scaled(toSize: CGSize(width, height)

Rotating

With this extension you can rotate, flip or reflect an image.

let reflectedImage = myImage.reflected()
let flippedImage = myImage.horizontallyFlipped()
let rotatedImage = myImage.rotated(degrees: 45.0)

Saving

This extension allows you to save an image at a specified path or file URL among these format : BMP, GIF, JPG, PNG, TIFF.

let success = myImage.save(to: yourURL)
let success = myImage.save(toPath: yourPath, type: .jpg)

Operator overloading

You can combine images using the + operator, it's a top composition.

let combinedImage = img1 + img2

Creating a gradient image

let gradient = UIImage.makeGrayGradient(width: width, height: height, fromAlpha: 1.0, toAlpha: 1.0)

Creating an image from a string

let stringImage = UIImage.makeFromString("SwiftyImages", font: textFont, fontColor: fontColor, backgroundColor: bgColor, maxSize: maxSize)

UIColor extensions

Some utilities to create color from a hexadecimal value, invert a color and more.

CGContext extensions

3 functions to easily get a bitmap context :

let bmContext = CGContext.ARGBBitmapContext(width: width, height: height, withAlpha: false)
let bmContext = CGContext.RGBABitmapContext(width: width, height: height, withAlpha: true)
let bmContext = CGContext.GrayBitmapContext(width: width, height: height)

Classes

NYXProgressiveImageView

This is a subclass of UIImageView to load asynchronously an image from an URL and display it as it is being downloaded. Image caching is supported. For more informations see https://cocoaintheshell.whine.fr/2012/01/nyximageskit-class-nyxprogressiveimageview/ and https://cocoaintheshell.whine.fr/2011/05/progressive-images-download-imageio/.

KawaiiColors

Class to match colors like iTunes 11.

let analyzer = KawaiiColors(image: myImage)
analyzer.analyze()
//analyzer.edgeColor
//analyzer.dominantColor
//analyzer.primaryColor
//analyzer.secondaryColor
//analyzer.thirdColor

LICENSE

SwiftyImages is released under the MIT License, see LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].