Sunset Lake Software - Comments for "Fast averaging function for images" http://www.sunsetlakesoftware.com/forum/fast-averaging-function-images Comments for "Fast averaging function for images" en Unfortunately, you can't http://www.sunsetlakesoftware.com/forum/fast-averaging-function-images#comment-1383 <p>Unfortunately, you can't write to floating point textures on iOS, so the only way to extract a value other than 0-255 is to encode it as a color. Your best bet probably would be to extract that from a 1x1 RGBA image.</p> pubDate Sat, 12 May 2012 02:09:57 +0000 dc:creator Brad Larson guid false comment 1383 at http://www.sunsetlakesoftware.com ah, thanks. i'd like to http://www.sunsetlakesoftware.com/forum/fast-averaging-function-images#comment-1382 <p>ah, thanks. i'd like to obtain the average as a floating point so being able to sum all the raw pixel values is important as opposed to getting the result as a 1x1 image.</p> pubDate Fri, 11 May 2012 22:19:41 +0000 dc:creator shadowstriker guid false comment 1382 at http://www.sunsetlakesoftware.com Not yet. I need to do this as http://www.sunsetlakesoftware.com/forum/fast-averaging-function-images#comment-1381 <p>Not yet. I need to do this as a filter that samples and generates progressively smaller images from the source. Using hardware texture filtering, each step would reduce the image by one fourth in each direction until you arrive at a 1x1 image containing the average image color (potentially adjusted based on mismatches between width and height dimensions).</p> <p>Apple uses this process in their mean color Core Image filter, and describes it here: <a href="http://http.developer.nvidia.com/GPUGems3/gpugems3_ch26.html" title="http://http.developer.nvidia.com/GPUGems3/gpugems3_ch26.html" rel="nofollow">http://http.developer.nvidia.com/GPUGems3/gpugems3_ch26.html</a></p> <p>I just need to implement something that handles this operation.</p> pubDate Fri, 11 May 2012 20:13:41 +0000 dc:creator Brad Larson guid false comment 1381 at http://www.sunsetlakesoftware.com