i'm doing an app for android for image processing.
To do things more fast i used to apply filters on a sample image (using inSampleSize as google reccomend)
when i save the photo (and so apply the effect to the original image) the process take about 16 seconds to finish (5 mpx with a galaxy nexus) so i was thinking if there is a faster way to process the image.
this is the code in which i apply the effect to the real image:
public void executeRealEffect(FileOutputStream ostream)
throws InstantiationException, IllegalAccessException,
ClassNotFoundException {//...
ImageProcessing imp;
imp = (ImageProcessing) Class.forName(effectUsed).newInstance();
savePhoto = imp.doEffect(BitmapFactory.decodeFile(pathToPhotoUsed));
savePhoto.compress(CompressFormat.JPEG, 100, ostream);//...
}
and this is an effect taken from internet to try the app : http://xjaphx.wordpress.com/2011/06/21/image-processing-grayscale-image-on-the-fly/