Hey All,
just had a chance to read over all the info on the various image formats, very interesting! so thanks to all for that info everyone.
MacDaddy, did you get the fire-I with the no-ir-coating lens? i found it to be way plenty sensitive, even to the crappy amount of IR I am projecting onto my surface, and even with the crappy 35mm film-stock reject visible light filter i am using. I got the OEM board version, have been very happy with it. Anyhow, just curious.
as far as image format goes: I do like the CIIimage just because they have all the image filters available if you need them for your set up.. and i think it would be fairly trivial to make the blob detector into a filter. (much like others have done in the other projects) Obviously the code i wrote is all NSImage based, but really there is very little NSImage specific stuff in there, it is mostly just dealing with the bitmap buffers. Later this week i will look into doing a CIImage version (unless one of you beats me to it).
I also think it would be fairly easy to do a qtKit drop in replacement for the SG stuff in my code as well. The only real interface requirement is that the output needs to be an 8bit NSImage (until any CIImage stuff is added) and since you probably have to convert from an ARGB chunky camera raw source to get an 8bit image, then stuffing it into an NSImage is really pretty easy. (just as easy as stuffing it back into a CIImage)
I forsee in the future, the blob detector could be a nice robust object that allowed for say [myDetector analyzeNSImage:] as well as [myDetector analyzeCIImage:].. analyzebitmap, analyzeArrayOfIntegers...whatever. (and also act as a CIIfilter). everything eventually boils down to a big list of unsigned chars anyhow, so it really matters very little what the source of those values are.
In my current implementation, images go in and tracking info comes out, so the images are never meant to be drawn. I know most of the new core image stuff is optimized for being eventually drawn, so I am not sure how much of that optimization is lost on us. anyhow, just thinking out loud here really.
Hey MacDaddy, as far as the qtKit goes, you say that you think you can achieve all the hardware control via function calls? I so hope that is true, i couldn’t seem to find it tho. for my purposes a way to simply lock in the current setting would be basically all I would ever need (ie let the smart algorithms figure out the best quality, then just lock that in so that they dont change with the slight changes as i add blobs to the image.) I will have another look at the docs, but if you have some more info i would love to know
And if not, I wonder if Pawel or anyone else who is going to be at WWDC this year can talk to the apple guys to see if there is any movement toward the hardware level control in the qtKit.
Also, i think i should mention that the code i added today is a bit rough around the edges. (i think that the sampleEventView doesn’t actually do anything yet) I am going to be gone for a few days and just wanted to get the new stuff up in case you guys wanted to play with it or had more great ideas
One thing you can do is see the blob tracking info in the log window, which is anti-climatic, but it is something
Cheers!
-panda