Fully automatic perceptual modeling of near regular textures