Not sure if better post here or open a new topic on the flickr group....
I was thinking from long to ask if was possible port a droste effect to gmic, and i was wondering if would be possible port other type of mapping
To make the question more clear, i may easily found the formula for the various mapping but if i remember well for mathmap was needed to have the inverse formula and how get it for me was a enigma
And in gmic ?
1 ) supposing i get the mapping formulas (easy to find googling )..hem ...how to convert in a gmic filter ?
2) for most i found interesting i have a MathMap code, will be useful ?
A practical example (i have also a animated version but i fear would be more complex ) this map rectangles to ellipsoid but with a peculiar distortion that make the ellipsoid look more 3D ...
as here
What if Dali was Cristhian? by
PhotoComiX, on Flickr
a before/after
BEFORE
varanasi, india by
babasteve, on Flickr
AFTER (the left half mirrored horizontally + rectangle2ellipsoid )
Floating Egg Project by
PhotoComiX, on Flickr
IF the input image ration is 1:1 ,if is a square, then the result looks is a sort of spherical mapping
here the MM code
filter rel2ellv3(image in)
xprime=x/sqrt(1-4*(y/H)*(y/H));
yprime=y/sqrt(1-4*(x/W)*(x/W));
in(xy:[xprime,yprime])
end
PS
Talking about Escher here a MM filter for a "Escher Balcony " mapping
Maurits Cornelius Escher - Balcony by
mavrikha, on Flickr
filter Balkon (image in, float rmax:0-1 (0.5),float p1:0-100 (40),float p2:0-20 (5),float p3:0-10 (5.5), float p4:0-10 (1.57))
# Searching Escher's Balkon transform
r1=r/H;
rprime=r1;
aprime=a;
if(r1<rmax) then
rprime=-(-p2+sqrt(p2+p1/2-p1*r1))/p3*cos(p4*r1)
end;
in(ra:[rprime*H,aprime])
end
not as easy to use as the rect2ell but still a quite interesting effect