anaglyph-3d

How to implement a procedure of calibration red and cyan colors of monitor for concrete red-cyan anaglyph glasses?

别等时光非礼了梦想. 提交于 2020-01-04 09:27:46
问题 I am developing an application for treatment of children. It must show different images for left and right eyes. I decided to use cheap red-cyan glasses for separating the fields of view of the eyes. The first eye will see only red images the second one - only cyan. The problem is that colors on monitor are not really red and cyan. Also glasses are not ideal. I need to implement the calibration procedure for searching the best red and cyan colors for current monitor and glasses. I mean I need

Java. What is the fastest way to run and process every pixel on bitmap?

被刻印的时光 ゝ 提交于 2019-12-11 05:25:35
问题 I have the image_source that is the source bitmap with some picture and image_new — temporary bitmap I do this code, that makes image_source be anaglyph background layer: int [] pixel = {0x0, 0x0, 0x0}; int [] image_params = {image_source.getWidth() - 2 * anaglyph_amplitude, image_source.getHeight()}; Bitmap image_new = Bitmap.createScaledBitmap(image_source, image_params[0], image_params[1], false); for(int i = 0; i < image_params[0]; ++i) for(int j = 0; j < image_params[1]; ++j) { pixel[0]