Hello world.
I am abolutely new to plugin development and have been ploughing through the SDK and sample projects thus far, but I had a few questions about the approach with respect to what I wish to achieve and thought it would be best to pick the brains of everyone here.
I need to compare frames from a source video to a sample image which I shall call the target. I found how to do this using the Checkout example as well as the tutorial over at Mactech. However, the problem gets complex where I need to compare only fixed pixels from the source frame to certain fixed pixels in the target image. To give a better insight, I believe I should describe the problem statement a little better.
Scenario:
A user saves a target image along with the fixed pixels for comparison as a preset. The user also chooses the fixed pixels in a test source frame and saves this as well. The plugin takes the source video and the preset as an input and compares the fixed pixels to the target pixels. By 'compares' I mean some complex math would be performed in the CIE Lab space, but that is a discussion for later, and I'm taking this one step at a time.
Can someone please guide me as to how to set up this system to start with?
In short:
1. How do I store the x and y's of the fixed pixels in the source test frame and target as 2 presets? Possibly a custom data structure that would be bundled with the image?
2. How do I then access these and iterate only over those fixed pixels in a source frame and target image?
I am sorry if these are ridiculous questions, but I've been reading for a while and don't seem to be able to find these answers myself.
Thanks,
Chirag