One possibility might be an overhead ortho render, black sleepers on white surface, no shadows... then project the render through the camera as a mask for the plant distribution. That would only affect the placement of plants though, you might still have leaves/plants passing through the edges of the sleepers if they weren't very narrow