An Android Library for making use of straightforward, quick and efficient 62 (can be added extra) LUT filters to images. With RenderScript, it’s aimed to course of the colour areas within the LUT and apply them to the image within the type of a filter.
What’s LUT?
The direct translation of LUT (“Lookup Desk”) from English means “lookup desk”. In laptop science, it means information the place enter (enter) values and output (output) values are mapped and calculated.
Preliminary Set up
Gradle
Add under codes to your root construct.gradle file (not your module construct.gradle file).
repositories {
maven { url ‘https://jitpack.io‘ }
}
}
And add a dependency code to your module’s construct.gradle file.
implementation ‘com.github.zekierciyas:FancyFilter:Tag‘
}
Utilization
The Fancy Filter library, which is quick and simple to make use of, typically features a easy Builder Sample. It’s based mostly on offering the mandatory parameters and acquiring the filtered picture in bitmap kind.
.withContext(this)
.filter(FancyFilters.NO_1)
.bitmap(bitmap)
.applyFilter { bitmap ->
// Getting the filtered bitmap right here
}
Licensed below the Apache License, Model 2.0 (the “License”);
you might not use this file besides in compliance with the License.
Chances are you’ll acquire a replica of the License at
http://www.apache.org/licenses/LICENSE-2.0
Until required by relevant legislation or agreed to in writing, software program
distributed below the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, both categorical or implied.
See the License for the particular language governing permissions and
limitations below the License.