i am working on image encryption and decryption algorithm. i want to make image pixel distorted. i want to get every pixel value and then sort these pixel value the way i want so that pixel of image is distorted and image changed. is am i going in the rite direction? any hint? or example algorithm which will help me out.
Idea:
i have an image of 10*10
pixel. it means image comprises of 100
pixels. if i pick 1st pixel row of image which is 10
pixels, i convert these pixels in binary and then decimal. now i get 10 decimal values of pixels. i sort these values the way i want. now converting the decimal values to binary and the into pixel. image pixels of the first row is now distorted.