On the one with the building you can easily use the pen tool (if you know how to use it) then do an adjustment layer. On the one with the car you use the background eraser tool (if you kow how to use it). I can look up a tutorial for you if you don't.