TimeCostObstacleDensity is a time cost function for the obstacle density that
uses image processing filters. The measurement with a loading is done by the
ObstacleGaussianFilter that uses the javaCV library. This has to be done only
once, because the obstacles don't move.