Isolating objects in Photoshop can be a painstaking process. If you want to select simple objects, the marquee or lasso tools will get the job done quickly. But if you're working on a complex subject, ...
In Illustrator, the envelope works like a mask, it hides the parts of the object that is outside the envelope. It goes further by changing the shape of the object to fit the shape of the envelope.