Linearizing IndoorScenes images