So it’s midterm/final time so there hasn’t been any progress lately, dectection really needs to be fixed, I might just try using connected component labelling and retrieving areas although I can see an immediate problem bring if there isn’t a silent area around the maze it could just grab random large blobs.
Also I posted back on Oct31 a way to increase the speed was switching from using the get method of the matrix to just storing it in a integer array. After a class in CMPT 250 I realized that the reason the speed could’ve increase was because the get and set method could have been “thrashing my cache”.
Update Sept 17: 2013 So pretty much you just should never use an objects method for accessing data in my case using the put and get functions of the OpenCV Mat object to access individual pixel values. Rather converting it to some primitive data type or into a Bytebuffer will be many many times faster and more efficient. Function calls are bad!