Infragram Sandbox
infragram-sandbox

The [Infragram Sandbox](http://infragram.org/sandbox) is a browser based tool for experimenting with image compositing, intended for use with Public Lab [Infragram cameras](/wiki/infragram). Read [this research note](/notes/warren/08-17-2013/infragrammar-compositing-infrared-images-with-simple-mathematic-expressions#c6664) and watch this short video to get a quick idea of how to use it: ##Infragrammar Infragram Sandbox uses simple math expressions, which are actually written in JavaScript. Here are some examples: * [NDVI](/wiki/ndvi) = `(R-B)/(R+B)` for -1..1, or for 0..1 `(((R-B)/(R+B))+1)/2` in the Monochrome input * ENDVI = `((R+G)-(2*B))/((R+G)+(2*B))` which MaxMax uses for its vegetation stress cameras, in the Monochrome input * A colormapped NDVI, scaled to emphasize differentiation: `((R-B)/(R+B)-0.2)*-720`, in the Hue input, and tweaking the 0.2 value to between 0.1 and 0.9 ([read more here](/notes/warren/08-24-2013/infragrammar-with-hsv-color-model)) * (add yours here) ###Math Infragrammar can use [JavaScript math functions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math). These include: * `Math.log()` - logarithms * `Math.abs()` - absolute value * `Math.sin()` - sine ###Sliders You can also link an equation to a slider; for now we are using the letter "X" to represent this value, but in the future, any string represented as {mystring} will generate a slider called "mystring". Move the slider to try different values in real time. [![infragrammar](http://publiclab.org/system/images/photos/000/001/174/medium/Screen_Shot_2013-08-17_at_11.52.00_AM.png)](http://publiclab.org/system/images/photos/000/001/174/original/Screen_Shot_2013-08-17_at_11.52.00_AM.png)...


Author Comment Last activity Moderation
warren "Hmm, i once saw this with a different camera, where the filter was helping to pressure the lens into place, and removing it let the lens rock back ..." | Read more » over 10 years ago
theowallis "Just a friendly warning for those of you looking to attempt this conversion, I did this last week, it wasn't too hard to smash the ir blocker out b..." | Read more » over 10 years ago
mathew "I tried acetone, ethanol, and hot air, none moved the glue. " | Read more » over 10 years ago
WhiteRabbit "Would acetone or some other solvent dissolve the glue holding on the IR blocker so that it can be removed without shattering it? Is it known what ..." | Read more » over 10 years ago
cfastie "The only filter I tried that worked was Wratten 25A. Two blue filters worked poorly. @mathew has tried Rosco #19 which seems to work well. I don't ..." | Read more » over 10 years ago
WhiteRabbit "" I can try different filters to learn how to make the best plant health images." Which filters have you found that make the best plant health ima..." | Read more » over 10 years ago
warren "Here is Mathew's PDF on conversion, as well, for reference: mobius_instructions.pdf " | Read more » over 10 years ago
mathew "I was having trouble getting the white balance settings to load. figured it out from a manual editing page on RC groups: http://www.rcgroups.com/fo..." | Read more » over 10 years ago
cfastie "Thanks, download works! Mathew, The white balance settings for both of your Mobius shots at infragram.org are 288, 256, 432. That suggests the came..." | Read more » over 10 years ago
warren "Added! " | Read more » over 10 years ago
warren "Ah, good call. There are a zillion features we need to add to Infragram, but I think i can add that one reasonably fast. Let me try. " | Read more » over 10 years ago
cfastie "I couldn't find a way to download Mathew's original Infragram from Infragram.org. Is there a way? All I could get was the result image. " | Read more » over 10 years ago
mathew "sure image is here. " | Read more » over 10 years ago
warren "Yeah that doesn't look like it's working at all -- can you link to your Infragrammar.org image so I can try to debug? " | Read more » over 10 years ago
mathew "This formula doesn't produce anything like NDVI for me. I always get an image that looks the same as unprocessed, with some artifacting. " | Read more » over 10 years ago
cfastie "You're right, that would be a revealing test. In the example you referred to (below), the red channel should be three times more sensitive than th..." | Read more » over 10 years ago
ttaylor "you know, if the little color filters in Mobius cmos sensor Bayer array have the same spectral response as some of the CCD sensors I've seen around..." | Read more » over 10 years ago
ttaylor "Wow, that was quick. Too bad about the Mobius not doing raw. I feel like a I have decent handle on the Canons, but the Mobius is so light and po..." | Read more » over 10 years ago
cfastie "Tom, Maybe it would also be useful to you to have DNG images (via CHDK) from my full spectrum Canon A810? " | Read more » over 10 years ago
cfastie "Hi Tom, I didn't capture RAW with the S95, and the Mobius does not do RAW (although the firmware is open source, so it's possible). I could capture..." | Read more » over 10 years ago
ttaylor "Chris, do you have raw versions of these images I could look at? " | Read more » over 10 years ago
mathew "Ok-- I have the ROSCO Fire filter and several others in my swatch booklet. Going to run tests tomorrow, and try digging into the white balance pre..." | Read more » over 10 years ago
mathew "Nice writeup, thanks Chris. I like the tip on focusing, hadn't tried that. " | Read more » over 10 years ago
patcoyle "Very nice use of 3D design and printing for a specific one-off project. Exemplary. " | Read more » over 10 years ago