All Projects → AllanHasegawa → Tomo

AllanHasegawa / Tomo

Licence: mit
Tomo is a collection of fast image processing effects for Android

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Tomo

Sod
An Embedded Computer Vision & Machine Learning Library (CPU Optimized & IoT Capable)
Stars: ✭ 1,460 (+1290.48%)
Mutual labels:  library, image-processing
Pycnn
Image Processing with Cellular Neural Networks in Python
Stars: ✭ 509 (+384.76%)
Mutual labels:  library, image-processing
Degate
Open source software for chip reverse engineering.
Stars: ✭ 156 (+48.57%)
Mutual labels:  library, image-processing
Ascii art
Real-Time ASCII Art Rendering Library
Stars: ✭ 599 (+470.48%)
Mutual labels:  library, image-processing
Beam
✨ Expressive WebGL
Stars: ✭ 383 (+264.76%)
Mutual labels:  library, image-processing
Litiv
C++ implementation pool for computer vision R&D projects.
Stars: ✭ 82 (-21.9%)
Mutual labels:  library, image-processing
Manuf
Parser library for Wireshark's OUI database.
Stars: ✭ 103 (-1.9%)
Mutual labels:  library
Javamoney Lib
JavaMoney financial libraries, extending and complementing JSR 354
Stars: ✭ 104 (-0.95%)
Mutual labels:  library
Ts3admin.class
The ts3admin.class is a powerful api for communication with Teamspeak 3 Servers from your website! Your creativity knows no bounds!
Stars: ✭ 103 (-1.9%)
Mutual labels:  library
Wb srgb
White balance camera-rendered sRGB images (CVPR 2019) [Matlab & Python]
Stars: ✭ 101 (-3.81%)
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 (+0%)
Mutual labels:  image-processing
Swift Screencapture
A Swift framework to easily capture the screen on OS X.
Stars: ✭ 105 (+0%)
Mutual labels:  library
Alchemy
A discord library for Elixir
Stars: ✭ 104 (-0.95%)
Mutual labels:  library
Freeradius Client
A BSD licenced RADIUS client library
Stars: ✭ 103 (-1.9%)
Mutual labels:  library
Blind image quality toolbox
Collection of Blind Image Quality Metrics in Matlab
Stars: ✭ 105 (+0%)
Mutual labels:  image-processing
Simplepie
A simple Atom/RSS parsing library for PHP.
Stars: ✭ 1,389 (+1222.86%)
Mutual labels:  library
Libsodium Go
A complete overhaul of the Golang wrapper for libsodium
Stars: ✭ 105 (+0%)
Mutual labels:  library
Datepicker
A Date Picker with Calendar for iPhone and iPad Apps.
Stars: ✭ 103 (-1.9%)
Mutual labels:  library
Computational Graphics Thu 2018
Computational Graphics - THU Spring 2018
Stars: ✭ 104 (-0.95%)
Mutual labels:  image-processing
Bubble Navigation
🎉 [Android Library] A light-weight library to easily make beautiful Navigation Bar with ton of 🎨 customization option.
Stars: ✭ 1,537 (+1363.81%)
Mutual labels:  library

Tomo

Tomo is a collection of fast image processing effects for Android. Its main goal is to generate dynamic content for aesthetically pleasing apps.

The motivation behind this project can be read in this blog post.

Showcase

In this demo app we showcase a cool adaptive background being generated using the content of the screen:

Using it

Add the snippet below in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Then, add the dependency to your module:

dependencies {
    compile 'com.github.AllanHasegawa:Tomo:x.y.z'
}

Latest release: Release

Initialize the library in your Application class:

class MyApp : Application {
    override fun onCreate() {
        Tomo.initialize(this)
        ...
    }
}

Now you're ready to either apply the effects over Bitmaps or ImageViews:

val myBitmap: Bitmap = ...
val bitmapProcessed = Tomo.applyAdaptiveBackgroundGenerator(myBitmap, darkTheme = true)

val myImageView: ImageView = ...
Tomo.applyAdaptiveBackgroundGenerator(myImageView, darkTheme = true)

Built-in effects

Adaptive Background Generator

Source Image Adaptive Background Generator
Dark Theme Light Theme

Custom effects

Tomo comes equipped with a list of image transformations that can be arranged in any order to build cool custom effects.

To transform a Bitmap, call Tomo::applyCustomTransformation():

val newBitmap = Tomo.applyCustomTransformation(oldBitmap) {
    // Scale to 1/10 of its size
    resize(
        newWidth = initialSize.width / 10,
        newHeight = initialSize.height / 10
    )

    // Blur it
    blur(radius = 25f)

    // Clamp the value (from HSV)
    valueClamp(
        lowValue = 0.05f,
        highValue = 0.3f,
        saturationMultiplier = 1.3f,
        saturationLowValue = 0f,
        saturationHighValue = 1f
    )

    // Apply a noise overlay
    grayNoise()
}

resize

resize, as the name implies, lets you resize the bitmap.

blur

blur applies a gaussian blur. It's maximum radius is 25f.

valueClamp

valueClamp clamps the value and the saturation of an image. It can also scale the saturation.

grayNoise

grayNoise applies a gray noise over the image.

rgbNoise

rgbNoise assigns a random, close, RGB color to each pixel.

License

Copyright 2019 Allan Yoshio Hasegawa

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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].