My idea was to have a Class called room which has all the pixels which a room consist in a vector, but how shall I constrain the class to only have the pixels of the room, and not the obstacles as walls in this case, and separate a room with another room.. ??