Using Sobel sampling generator.