Dividing pixel array from cam?

How do I divide the pixel array from the camera into 16 equal sections so that when hands are detected in different areas they trigger different sounds/effects?

I have a pretty good idea of how to pseudo this, but bit stuck on implementing it. Can anyone help?

Are there any example codes similar to this?

you can get the centroid from each blob that opencv detects with that, the centroid is an ofPoint with x and y coordinates so just check if that coordinates are in one of the divisions.