resizing and anti-aliasing
in
Programming Questions
•
8 months ago
Hello,
I am trying to resize some images. While doing it, in some cases, antialiasing seems like not working.
so for example, I have a 1600x1200 photo as original image ( http://imgur.com/WpfEyzH). And I am using this simple code:
PImage pimg;
public void setup()
{
size(1600, 1200);
pimg = loadImage("/Users/deniz/ServiceTeam/mclaren.jpg");
smooth(4);
}
public void draw()
{
pimg.resize(200, 200);
image(pimg,0,0);
}
So after running this code, the 200x200 image looks like this http://imgur.com/ag9cpcL
as you can see, there some distortions on the resulting image file
my question is that is there a way to totally making the image clear like this here : http://imgur.com/KPAyFDI ? This photo is created by a python library http://www.pythonware.com/products/pil/, so is it possible to have the same result with processing libraries?
I am trying to resize some images. While doing it, in some cases, antialiasing seems like not working.
so for example, I have a 1600x1200 photo as original image ( http://imgur.com/WpfEyzH). And I am using this simple code:
PImage pimg;
public void setup()
{
size(1600, 1200);
pimg = loadImage("/Users/deniz/ServiceTeam/mclaren.jpg");
smooth(4);
}
public void draw()
{
pimg.resize(200, 200);
image(pimg,0,0);
}
So after running this code, the 200x200 image looks like this http://imgur.com/ag9cpcL
as you can see, there some distortions on the resulting image file
my question is that is there a way to totally making the image clear like this here : http://imgur.com/KPAyFDI ? This photo is created by a python library http://www.pythonware.com/products/pil/, so is it possible to have the same result with processing libraries?
1