close the app when the main window is closed
invert the preview image by processing the raw data
refactor a bit
add an intermediate buffer data and an independent bitmap to return as output
separate the pixel data into rgba channels
fix the lack of output
reuse the buffers and copy the image data in the for loop
update the level bar and trigger the detection timer on willDisplayImage
-remove the unused method that captures the preview data
-move the difference calculation to the view:willDisplayImage: method
-fix some memory leaks
-disable the high pass filter calculation
remove four division from the processing code
add the RGBtoHSB and HSBtoRGB functions
change the rgb colours components to unsigned char in HSBtoRGB and RGBtoHSB
-use the two function for RGB <-> HSB conversion
-fix a memory leak
-make the high pass filter less sensitive
-fix the level calculation
-blur the captured data before detection motion
-makes the detection sensitive for changes in the range of 0.025 (2.5%) of video area
-combine the areas detected and the input image into the output image
-make the high pass calculation using RGV values instead of HSB
-refactor the lines of code to create and use the CIFilters
make the image grayscale before applying the blur filter