How to export non-blurry eps images?

后端 未结 10 1836
攒了一身酷
攒了一身酷 2020-12-15 07:08

I\'m exporting an image in Matlab using the eps format, but it smooths the image. Matlab does not blur the image using other formats such as png. I would like to know how to

10条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-15 07:45

    The blurring actually depends on the rendering software your viewer application or printer uses. To get good results all the time, make each pixel in your image an 8x8 block of pixels of the same color, i.e. resize the image like this:

    im2 = imresize(im1, 8, 'nearest');
    

    The blurring then only affects the pixels at the edge of each block. 8x8 blocks are best as they compress without nasty artifacts using DCT compression (sometimes used in eps files).

提交回复
热议问题