├── raw └── demo_image.png ├── TestImageProcessingLib ├── bin │ ├── classes.dex │ ├── resources.ap_ │ ├── jarlist.cache │ ├── TestImageProcessingLibrary.apk │ ├── res │ │ ├── drawable-hdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ │ └── ic_launcher.png │ │ └── drawable-xhdpi │ │ │ └── ic_launcher.png │ ├── classes │ │ └── com │ │ │ └── jcmore2 │ │ │ ├── imageprocessinglibrary │ │ │ ├── R.class │ │ │ ├── R$style.class │ │ │ ├── R$string.class │ │ │ └── R$drawable.class │ │ │ └── testimageprocessinglibrary │ │ │ ├── R.class │ │ │ ├── R$id.class │ │ │ ├── R$attr.class │ │ │ ├── R$dimen.class │ │ │ ├── R$layout.class │ │ │ ├── R$menu.class │ │ │ ├── R$string.class │ │ │ ├── R$style.class │ │ │ ├── R$drawable.class │ │ │ ├── BuildConfig.class │ │ │ ├── TestActivity.class │ │ │ ├── TestActivity$1.class │ │ │ ├── TestActivity$2.class │ │ │ ├── TestActivity$3.class │ │ │ ├── TestActivity$4.class │ │ │ ├── HorizontalListView.class │ │ │ ├── ListEffectAdapter.class │ │ │ ├── TestActivity$1$1.class │ │ │ ├── HorizontalListView$1.class │ │ │ ├── HorizontalListView$2.class │ │ │ ├── HorizontalListView$3.class │ │ │ ├── ListEffectAdapter$1.class │ │ │ ├── ProcessingAsyncTask.class │ │ │ ├── ListEffectAdapter$ViewHolder.class │ │ │ └── ProcessingAsyncTask$ProcessingListener.class │ ├── dexedLibs │ │ ├── android-support-v4-15157426f1975f099af003680737fd21.jar │ │ └── imageprocessinglibrary-de120e7c8cc49977742f0d0a79651b29.jar │ ├── R.txt │ └── AndroidManifest.xml ├── res │ ├── drawable-hdpi │ │ ├── icon.jpeg │ │ ├── imagen.jpg │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ ├── icon.jpeg │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ ├── icon.jpeg │ │ └── ic_launcher.png │ ├── values-sw600dp │ │ └── dimens.xml │ ├── values │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml │ ├── menu │ │ └── test.xml │ ├── values-sw720dp-land │ │ └── dimens.xml │ ├── values-v11 │ │ └── styles.xml │ ├── values-v14 │ │ └── styles.xml │ └── layout │ │ ├── effect_view.xml │ │ └── activity_test.xml ├── .settings │ └── org.eclipse.jdt.core.prefs ├── gen │ └── com │ │ └── jcmore2 │ │ ├── testimageprocessinglibrary │ │ ├── BuildConfig.java │ │ └── R.java │ │ └── imageprocessinglibrary │ │ └── R.java ├── .classpath ├── project.properties ├── proguard-project.txt ├── .project ├── AndroidManifest.xml └── src │ └── com │ └── jcmore2 │ └── testimageprocessinglibrary │ ├── TestActivity.java │ ├── ListEffectAdapter.java │ ├── ProcessingAsyncTask.java │ └── HorizontalListView.java ├── ImageProcessingLib ├── res │ ├── values │ │ ├── strings.xml │ │ └── styles.xml │ ├── drawable-hdpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ ├── values-v11 │ │ └── styles.xml │ └── values-v14 │ │ └── styles.xml ├── bin │ ├── imageprocessinglib.jar │ ├── imageprocessinglibrary.jar │ ├── jarlist.cache │ ├── R.txt │ ├── res │ │ ├── drawable-hdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ │ └── ic_launcher.png │ │ └── drawable-xhdpi │ │ │ └── ic_launcher.png │ ├── classes │ │ └── com │ │ │ └── jcmore2 │ │ │ ├── imageprocessinglibrary │ │ │ ├── R.class │ │ │ ├── R$attr.class │ │ │ ├── R$string.class │ │ │ ├── R$style.class │ │ │ ├── BuildConfig.class │ │ │ └── R$drawable.class │ │ │ └── imageprocessing │ │ │ ├── utils │ │ │ └── Utils.class │ │ │ ├── ImageProcessing.class │ │ │ ├── ConvolutionMatrix.class │ │ │ ├── model │ │ │ └── ImageProcessingModel.class │ │ │ └── filesystem │ │ │ └── ImageFilesystemManager.class │ └── AndroidManifest.xml ├── libs │ └── android-support-v4.jar ├── assets │ └── Android-BitmapCache-2.1.jar ├── .settings │ └── org.eclipse.jdt.core.prefs ├── gen │ └── com │ │ └── jcmore2 │ │ └── imageprocessinglibrary │ │ ├── BuildConfig.java │ │ └── R.java ├── .classpath ├── AndroidManifest.xml ├── project.properties ├── proguard-project.txt ├── .project └── src │ └── com │ └── jcmore2 │ └── imageprocessing │ ├── model │ └── ImageProcessingModel.java │ ├── ConvolutionMatrix.java │ ├── utils │ └── Utils.java │ ├── filesystem │ └── ImageFilesystemManager.java │ └── ImageProcessing.java └── README.md /raw/demo_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/raw/demo_image.png -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes.dex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes.dex -------------------------------------------------------------------------------- /ImageProcessingLib/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | ImageProcessingLibrary 4 | 5 | -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/resources.ap_: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/resources.ap_ -------------------------------------------------------------------------------- /ImageProcessingLib/bin/imageprocessinglib.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/bin/imageprocessinglib.jar -------------------------------------------------------------------------------- /ImageProcessingLib/libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/libs/android-support-v4.jar -------------------------------------------------------------------------------- /ImageProcessingLib/bin/imageprocessinglibrary.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/bin/imageprocessinglibrary.jar -------------------------------------------------------------------------------- /TestImageProcessingLib/res/drawable-hdpi/icon.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/res/drawable-hdpi/icon.jpeg -------------------------------------------------------------------------------- /TestImageProcessingLib/res/drawable-mdpi/icon.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/res/drawable-mdpi/icon.jpeg -------------------------------------------------------------------------------- /ImageProcessingLib/assets/Android-BitmapCache-2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/assets/Android-BitmapCache-2.1.jar -------------------------------------------------------------------------------- /ImageProcessingLib/bin/jarlist.cache: -------------------------------------------------------------------------------- 1 | # cache for current jar dependecy. DO NOT EDIT. 2 | # format is 3 | # Encoding is UTF-8 4 | -------------------------------------------------------------------------------- /ImageProcessingLib/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /ImageProcessingLib/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /ImageProcessingLib/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /TestImageProcessingLib/res/drawable-hdpi/imagen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/res/drawable-hdpi/imagen.jpg -------------------------------------------------------------------------------- /TestImageProcessingLib/res/drawable-xhdpi/icon.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/res/drawable-xhdpi/icon.jpeg -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/jarlist.cache: -------------------------------------------------------------------------------- 1 | # cache for current jar dependecy. DO NOT EDIT. 2 | # format is 3 | # Encoding is UTF-8 4 | -------------------------------------------------------------------------------- /ImageProcessingLib/bin/R.txt: -------------------------------------------------------------------------------- 1 | int drawable ic_launcher 0x7f020000 2 | int string app_name 0x7f030000 3 | int style AppBaseTheme 0x7f040000 4 | int style AppTheme 0x7f040001 5 | -------------------------------------------------------------------------------- /ImageProcessingLib/bin/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/bin/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /ImageProcessingLib/bin/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/bin/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /ImageProcessingLib/bin/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/bin/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/TestImageProcessingLibrary.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/TestImageProcessingLibrary.apk -------------------------------------------------------------------------------- /TestImageProcessingLib/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /TestImageProcessingLib/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /TestImageProcessingLib/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R.class -------------------------------------------------------------------------------- /ImageProcessingLib/bin/classes/com/jcmore2/imageprocessing/utils/Utils.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/bin/classes/com/jcmore2/imageprocessing/utils/Utils.class -------------------------------------------------------------------------------- /ImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R$attr.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R$attr.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R.class -------------------------------------------------------------------------------- /ImageProcessingLib/bin/classes/com/jcmore2/imageprocessing/ImageProcessing.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/bin/classes/com/jcmore2/imageprocessing/ImageProcessing.class -------------------------------------------------------------------------------- /ImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R$string.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R$string.class -------------------------------------------------------------------------------- /ImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R$style.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R$style.class -------------------------------------------------------------------------------- /ImageProcessingLib/bin/classes/com/jcmore2/imageprocessing/ConvolutionMatrix.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/bin/classes/com/jcmore2/imageprocessing/ConvolutionMatrix.class -------------------------------------------------------------------------------- /ImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/BuildConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/BuildConfig.class -------------------------------------------------------------------------------- /ImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R$drawable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R$drawable.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R$style.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R$style.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R$string.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R$string.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R$id.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R$id.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R$drawable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/imageprocessinglibrary/R$drawable.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R$attr.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R$attr.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R$dimen.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R$dimen.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R$layout.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R$layout.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R$menu.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R$menu.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R$string.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R$string.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R$style.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R$style.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R$drawable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/R$drawable.class -------------------------------------------------------------------------------- /ImageProcessingLib/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 3 | org.eclipse.jdt.core.compiler.compliance=1.6 4 | org.eclipse.jdt.core.compiler.source=1.6 5 | -------------------------------------------------------------------------------- /ImageProcessingLib/bin/classes/com/jcmore2/imageprocessing/model/ImageProcessingModel.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/bin/classes/com/jcmore2/imageprocessing/model/ImageProcessingModel.class -------------------------------------------------------------------------------- /TestImageProcessingLib/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 3 | org.eclipse.jdt.core.compiler.compliance=1.6 4 | org.eclipse.jdt.core.compiler.source=1.6 5 | -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/BuildConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/BuildConfig.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/TestActivity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/TestActivity.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/dexedLibs/android-support-v4-15157426f1975f099af003680737fd21.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/dexedLibs/android-support-v4-15157426f1975f099af003680737fd21.jar -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/TestActivity$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/TestActivity$1.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/TestActivity$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/TestActivity$2.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/TestActivity$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/TestActivity$3.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/TestActivity$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/TestActivity$4.class -------------------------------------------------------------------------------- /ImageProcessingLib/bin/classes/com/jcmore2/imageprocessing/filesystem/ImageFilesystemManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/ImageProcessingLib/bin/classes/com/jcmore2/imageprocessing/filesystem/ImageFilesystemManager.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/HorizontalListView.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/HorizontalListView.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/ListEffectAdapter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/ListEffectAdapter.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/TestActivity$1$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/TestActivity$1$1.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/dexedLibs/imageprocessinglibrary-de120e7c8cc49977742f0d0a79651b29.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/dexedLibs/imageprocessinglibrary-de120e7c8cc49977742f0d0a79651b29.jar -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/HorizontalListView$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/HorizontalListView$1.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/HorizontalListView$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/HorizontalListView$2.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/HorizontalListView$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/HorizontalListView$3.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/ListEffectAdapter$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/ListEffectAdapter$1.class -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/ProcessingAsyncTask.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/ProcessingAsyncTask.class -------------------------------------------------------------------------------- /ImageProcessingLib/gen/com/jcmore2/imageprocessinglibrary/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** Automatically generated file. DO NOT MODIFY */ 2 | package com.jcmore2.imageprocessinglibrary; 3 | 4 | public final class BuildConfig { 5 | public final static boolean DEBUG = true; 6 | } -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/ListEffectAdapter$ViewHolder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/ListEffectAdapter$ViewHolder.class -------------------------------------------------------------------------------- /TestImageProcessingLib/res/values-sw600dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /TestImageProcessingLib/gen/com/jcmore2/testimageprocessinglibrary/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** Automatically generated file. DO NOT MODIFY */ 2 | package com.jcmore2.testimageprocessinglibrary; 3 | 4 | public final class BuildConfig { 5 | public final static boolean DEBUG = true; 6 | } -------------------------------------------------------------------------------- /TestImageProcessingLib/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16dp 5 | 16dp 6 | 7 | -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/ProcessingAsyncTask$ProcessingListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcmore2/ImageProcessingLib/HEAD/TestImageProcessingLib/bin/classes/com/jcmore2/testimageprocessinglibrary/ProcessingAsyncTask$ProcessingListener.class -------------------------------------------------------------------------------- /TestImageProcessingLib/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | TestImageProcessingLibrary 5 | Settings 6 | Hello world! 7 | 8 | -------------------------------------------------------------------------------- /TestImageProcessingLib/res/menu/test.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /TestImageProcessingLib/res/values-sw720dp-land/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 128dp 8 | 9 | -------------------------------------------------------------------------------- /ImageProcessingLib/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ImageProcessingLib/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /TestImageProcessingLib/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /TestImageProcessingLib/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /ImageProcessingLib/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /TestImageProcessingLib/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /ImageProcessingLib/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 9 | 10 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /ImageProcessingLib/bin/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 9 | 10 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /ImageProcessingLib/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-17 15 | android.library=true 16 | -------------------------------------------------------------------------------- /TestImageProcessingLib/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-17 15 | android.library.reference.1=../ImageProcessingLib 16 | -------------------------------------------------------------------------------- /TestImageProcessingLib/gen/com/jcmore2/imageprocessinglibrary/R.java: -------------------------------------------------------------------------------- 1 | /* AUTO-GENERATED FILE. DO NOT MODIFY. 2 | * 3 | * This class was automatically generated by the 4 | * aapt tool from the resource data it found. It 5 | * should not be modified by hand. 6 | */ 7 | package com.jcmore2.imageprocessinglibrary; 8 | 9 | public final class R { 10 | public static final class style { 11 | public static final int AppBaseTheme = 0x7f050000; 12 | public static final int AppTheme = 0x7f050001; 13 | } 14 | public static final class string { 15 | public static final int app_name = 0x7f040000; 16 | } 17 | public static final class drawable { 18 | public static final int ic_launcher = 0x7f020000; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /ImageProcessingLib/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | -------------------------------------------------------------------------------- /TestImageProcessingLib/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | -------------------------------------------------------------------------------- /ImageProcessingLib/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /TestImageProcessingLib/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/R.txt: -------------------------------------------------------------------------------- 1 | int dimen activity_horizontal_margin 0x7f060000 2 | int dimen activity_vertical_margin 0x7f060001 3 | int drawable ic_launcher 0x7f020000 4 | int drawable icon 0x7f020001 5 | int drawable imagen 0x7f020002 6 | int id action_settings 0x7f08000c 7 | int id botonera 0x7f080001 8 | int id file 0x7f080004 9 | int id first_view 0x7f080008 10 | int id image_effect 0x7f08000a 11 | int id imagen 0x7f080005 12 | int id layoutDibujosFull 0x7f080006 13 | int id listaDibujosFull 0x7f080007 14 | int id name_effect 0x7f08000b 15 | int id normal 0x7f080003 16 | int id parent 0x7f080000 17 | int id progBar 0x7f080009 18 | int id save 0x7f080002 19 | int layout activity_test 0x7f030000 20 | int layout effect_view 0x7f030001 21 | int menu test 0x7f070000 22 | int string action_settings 0x7f040001 23 | int string app_name 0x7f040000 24 | int string hello_world 0x7f040002 25 | int style AppBaseTheme 0x7f050000 26 | int style AppTheme 0x7f050001 27 | -------------------------------------------------------------------------------- /ImageProcessingLib/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | ImageProcessingLib 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /TestImageProcessingLib/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | TestImageProcessingLib 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ImageProcessingLib 2 | ================== 3 | 4 | Android Image Processing Library 5 | 6 | This library apply filters to images and can pick an image from gallery and save it. 7 | 8 | ![Screenshot](https://github.com/jcmore2/ImageProcessingLib/raw/master/raw/demo_image.png) 9 | 10 | 11 | Contains 12 | ================== 13 | 14 | * ImageProcessingLib: Library 15 | * TestImageProcessingLib: Demo tu use the library 16 | 17 | 18 | Licence 19 | ------- 20 | Copyright 2013 Juan Carlos Moreno (jcmore2) 21 | 22 | Licensed under the Apache License, Version 2.0 (the "License"); 23 | you may not use this file except in compliance with the License. 24 | You may obtain a copy of the License at 25 | 26 | http://www.apache.org/licenses/LICENSE-2.0 27 | 28 | Unless required by applicable law or agreed to in writing, software 29 | distributed under the License is distributed on an "AS IS" BASIS, 30 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 31 | See the License for the specific language governing permissions and 32 | limitations under the License. -------------------------------------------------------------------------------- /TestImageProcessingLib/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 19 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /TestImageProcessingLib/bin/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 19 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /ImageProcessingLib/src/com/jcmore2/imageprocessing/model/ImageProcessingModel.java: -------------------------------------------------------------------------------- 1 | package com.jcmore2.imageprocessing.model; 2 | 3 | import android.graphics.Bitmap; 4 | 5 | /** 6 | * Image Processing Model 7 | * @author jcmore2 jcmore2@gmail.com 8 | * 9 | */ 10 | public class ImageProcessingModel { 11 | 12 | public int process; 13 | public String processName; 14 | public Bitmap processedBitmap; 15 | 16 | public ImageProcessingModel(int process, String processName, Bitmap processedBitmap){ 17 | this.process = process; 18 | this.processName = processName; 19 | this.processedBitmap = processedBitmap; 20 | } 21 | 22 | public ImageProcessingModel(){ 23 | 24 | } 25 | 26 | public int getProcess() { 27 | return process; 28 | } 29 | public void setProcess(int process) { 30 | this.process = process; 31 | } 32 | public String getProcessName() { 33 | return processName; 34 | } 35 | public void setProcessName(String processName) { 36 | this.processName = processName; 37 | } 38 | public Bitmap getProcessedBitmap() { 39 | return processedBitmap; 40 | } 41 | public void setProcessedBitmap(Bitmap processedBitmap) { 42 | this.processedBitmap = processedBitmap; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /TestImageProcessingLib/res/layout/effect_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 18 | 19 | 25 | 26 | 27 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /ImageProcessingLib/gen/com/jcmore2/imageprocessinglibrary/R.java: -------------------------------------------------------------------------------- 1 | /* AUTO-GENERATED FILE. DO NOT MODIFY. 2 | * 3 | * This class was automatically generated by the 4 | * aapt tool from the resource data it found. It 5 | * should not be modified by hand. 6 | */ 7 | 8 | package com.jcmore2.imageprocessinglibrary; 9 | 10 | public final class R { 11 | public static final class attr { 12 | } 13 | public static final class drawable { 14 | public static int ic_launcher=0x7f020000; 15 | } 16 | public static final class string { 17 | public static int app_name=0x7f030000; 18 | } 19 | public static final class style { 20 | /** 21 | Base application theme, dependent on API level. This theme is replaced 22 | by AppBaseTheme from res/values-vXX/styles.xml on newer devices. 23 | 24 | 25 | Theme customizations available in newer API levels can go in 26 | res/values-vXX/styles.xml, while customizations related to 27 | backward-compatibility can go here. 28 | 29 | 30 | Base application theme for API 11+. This theme completely replaces 31 | AppBaseTheme from res/values/styles.xml on API 11+ devices. 32 | 33 | API 11 theme customizations can go here. 34 | 35 | Base application theme for API 14+. This theme completely replaces 36 | AppBaseTheme from BOTH res/values/styles.xml and 37 | res/values-v11/styles.xml on API 14+ devices. 38 | 39 | API 14 theme customizations can go here. 40 | */ 41 | public static int AppBaseTheme=0x7f040000; 42 | /** Application theme. 43 | All customizations that are NOT specific to a particular API-level can go here. 44 | */ 45 | public static int AppTheme=0x7f040001; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /ImageProcessingLib/src/com/jcmore2/imageprocessing/ConvolutionMatrix.java: -------------------------------------------------------------------------------- 1 | package com.jcmore2.imageprocessing; 2 | 3 | import android.graphics.Bitmap; 4 | import android.graphics.Color; 5 | 6 | /** 7 | * Class to apply convolution matrix 8 | * 9 | * @author jcmore2 jcmore2@gmail.com 10 | * 11 | */ 12 | public class ConvolutionMatrix { 13 | public static final int SIZE = 3; 14 | 15 | public double[][] Matrix; 16 | public double Factor = 1; 17 | public double Offset = 1; 18 | 19 | public ConvolutionMatrix(int size) { 20 | Matrix = new double[size][size]; 21 | } 22 | 23 | public void setAll(double value) { 24 | for (int x = 0; x < SIZE; ++x) { 25 | for (int y = 0; y < SIZE; ++y) { 26 | Matrix[x][y] = value; 27 | } 28 | } 29 | } 30 | 31 | public void applyConfig(double[][] config) { 32 | for (int x = 0; x < SIZE; ++x) { 33 | for (int y = 0; y < SIZE; ++y) { 34 | Matrix[x][y] = config[x][y]; 35 | } 36 | } 37 | } 38 | 39 | public static Bitmap computeConvolution3x3(Bitmap src, 40 | ConvolutionMatrix matrix) { 41 | int width = src.getWidth(); 42 | int height = src.getHeight(); 43 | Bitmap result = Bitmap.createBitmap(width, height, src.getConfig()); 44 | 45 | int A, R, G, B; 46 | int sumR, sumG, sumB; 47 | int[][] pixels = new int[SIZE][SIZE]; 48 | 49 | for (int y = 0; y < height - 2; ++y) { 50 | for (int x = 0; x < width - 2; ++x) { 51 | 52 | // get pixel matrix 53 | for (int i = 0; i < SIZE; ++i) { 54 | for (int j = 0; j < SIZE; ++j) { 55 | pixels[i][j] = src.getPixel(x + i, y + j); 56 | } 57 | } 58 | 59 | // get alpha of center pixel 60 | A = Color.alpha(pixels[1][1]); 61 | 62 | // init color sum 63 | sumR = sumG = sumB = 0; 64 | 65 | // get sum of RGB on matrix 66 | for (int i = 0; i < SIZE; ++i) { 67 | for (int j = 0; j < SIZE; ++j) { 68 | sumR += (Color.red(pixels[i][j]) * matrix.Matrix[i][j]); 69 | sumG += (Color.green(pixels[i][j]) * matrix.Matrix[i][j]); 70 | sumB += (Color.blue(pixels[i][j]) * matrix.Matrix[i][j]); 71 | } 72 | } 73 | 74 | // get final Red 75 | R = (int) (sumR / matrix.Factor + matrix.Offset); 76 | if (R < 0) { 77 | R = 0; 78 | } else if (R > 255) { 79 | R = 255; 80 | } 81 | 82 | // get final Green 83 | G = (int) (sumG / matrix.Factor + matrix.Offset); 84 | if (G < 0) { 85 | G = 0; 86 | } else if (G > 255) { 87 | G = 255; 88 | } 89 | 90 | // get final Blue 91 | B = (int) (sumB / matrix.Factor + matrix.Offset); 92 | if (B < 0) { 93 | B = 0; 94 | } else if (B > 255) { 95 | B = 255; 96 | } 97 | 98 | // apply new pixel 99 | result.setPixel(x + 1, y + 1, Color.argb(A, R, G, B)); 100 | } 101 | } 102 | 103 | // final image 104 | return result; 105 | } 106 | } -------------------------------------------------------------------------------- /TestImageProcessingLib/res/layout/activity_test.xml: -------------------------------------------------------------------------------- 1 | 12 | 13 | 16 | 17 | 20 | 21 | 26 | 27 |