how can reduce the resolu开发者_如何学编程tion of scan image
If you intend to resize an image, simply use the Matlab Image Toolbox.
There is a function for this purpose called imresize
B = imresize(A, scale)
You could:
- just downsample it, take every n-th pixel along each row and column in the original image and write it to a new image; choose n to suit your requirements;
- replace every n*n array of pixels by some average of the pixel values in the array; lots of definitions of average to choose from; again, choose n to suit your requirements.
精彩评论