Most likely, your '1 pixel image' is still there, but it's filling 1 corner of a large image now because the output image size is now as big as your video input. With only the 1 pixel image as an active input, the output image would also have been 1 pixel.
A much better way to do it would be to use an image pixel patch on the output of the area average, use a mathematical _expression_ patch with "(r + g + b) / 3" to get your average, and use a float input to get the average into your CI filter. That way you don't need to sample the pixel all the time.
Hi Folks, I'm very confused about how sampler coordinates work. I've read the manuals and a fair bit of theory. It's the practice I'm sticking on.
If anyone could offer any advice it would be much appreciated.
I'm writing a kernel app that will take change an image to black and white. The threshold is the image's average colour. Anything darker than average becomes black, and anything lighter than average becomes white.
In Quartz Composer I have the Area Average filter running fine. I can see the one pixel value that's generated and it looks good.
Here's the test code for this. For now "imageSampler" is ignored....
Now, here's the funny thing. When I connect my video capture device input to the imageSampler parameter above, the billboard output goes black. Despite the fact I've made no coding changes.
I can only guess that it's something to do with coordinates. Perhaps samplerCoord no longer returns my 1 pixel average. I've tried replacing this with samplerTransform, etc. but no dice.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden
This email sent to email@hidden