Monthly Archives: January 2014

Smoothing and anti-aliasing

Aliasing arises if you want to show a structure that varies rapidly within the distance between pixels. Then you will see artefacts that are quite different. We can use this to get new strange images such as I showed in … Continue reading

Posted in Extra, programming | Tagged , , , , | Leave a comment

ColorLookup – the code

//  looks up the color in the PImage input at position of vector here //  in pixel coordinates //  use a fitting Coordinates(input) object to transform image coordinates to pixel coordinates class ColorLookup{   int thisWidth, thisHeight;   float xLength,yLength,xPeriod,yPeriod; … Continue reading

Posted in programming | Tagged , | Leave a comment

interpolation of pixels

If you look at my earlier post “Nautilus” you see that it is difficult to get good results for strongly distorted images. They have regions where the input image is strongly magnified and one input pixel could cover many pixels … Continue reading

Posted in Extra, programming | Tagged , , , , , | Leave a comment

looking up colors

I wrote the code for the improved class Coordinates and for reading and writing images because I wanted to manipulate images with methods you won’t find in Photoshop and the like. But we still need a method to look up … Continue reading

Posted in Extra, programming | Tagged , , , | Leave a comment

improved class Coordinates – the code

//version of 23rd jan 2014 // relates technical pixelindizes (i,j) to geometric image coordinates (x,y) and inverse // both (i,j) and (x,y) are Vector objects with float components // (i,j) are float for pixel interpolation. // // Note: vertical coordinates … Continue reading

Posted in programming | Tagged , | Leave a comment

improving the class Coordinates

I want to shift and rotate images moving the mouse around and to change the scale of images with the mouse wheel, similarly as in good old google earth. Thus I have written the new improved class Coordinates, which you … Continue reading

Posted in programming | Tagged , | Leave a comment

readWriteImages – the code

// reading and writing images, graphics and the screen for processing2 // I don’t use objects because the callback-routines cannot be object-methods PImage _Image;                            // beware of dublicate definitions! PGraphics _Graphics; boolean reading=false,writing=false; //  read the PImage input   void … Continue reading

Posted in programming | Tagged , | Leave a comment