depends on what you want. If you want something that will automatically determine the passability from the picture, then I have no Idea. -> I think this is what you are asking for.
A huge problem with this is the different layers: you can't tell what's what.
If you simply want to set up your own passibility on a picture, set it as the panorama.