|
White Detector GridWhite Detector Grid + troubles with LockBufferRepresentationWithPixelFormatHey all I have nearly finished a custom patch that I am happy to use in my project. However i've come across two stumbling blocks and am hoping for some guidance from the intelligent people here. First what the patch does Aim: Detects the intensity of white in different parts of an image Why: A difference image shows motion in black and white. With this patch you will be able to have general areas of movement. Other patches that detect movement I have found to be too precise and finicky. This trys to simplify it. How: The patch creates a grid of cells, each cell generates a 'weight' from the amount of white in the corresponding part of the image. This grid is outputted as an array. The amount of white, currently, is detememined by the intensity level that has the highest pixel count in the red channel. Video of it in basic use: Bugs:
In the attached QC file set Y Origin (%) to 25 and Height of Grid(%) to 100 to reporduce this bug.
Any help would be so very much awesome Cheers Lango ** EDIT: attached the actual profile files as a zip. One that is the HistogramOperation tutorial and one is from my patch. ** ** EDIT 2: Corrected the source attachment **
|