Hello Sir, I tested your code. But your code was very slowly. For 256 size image gray-scale, the speed is 5 seconds. How to speed-up this??