Nur in aller grösster Not verwende ich Skripte. Und zu Phython hat mich nie ein Kunde gezwungen. D.h: helfen könnte ich da nicht konkret, allgemein natürlich immer gern.
Die Formeln konvertieren ist nicht da Problem denn das funktioniert schon als Script in Siril
Siril Script selbst kann keine Variablen verwalten und deshalb musste ich mir dem Zwischenspeichern der Ergebnisse Abhilfe verschaffen. Mit Python gibt es das Problem nicht mehr.
Astrotreff - Die Astronomie und Raumfahrt Community in the WSC-Connect App on Google Play
Astrotreff - Die Astronomie und Raumfahrt Community in the WSC-Connect App on the App Store
Download
This site uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.More DetailsClose
fedorauser
Hallo ich habe mal ne Entwicklerfrage wie bist du denn in Python aufgestellt in Verbindung mit TKINTER?
tomlicha
Nur in aller grösster Not verwende ich Skripte. Und zu Phython hat mich nie ein Kunde gezwungen. D.h: helfen könnte ich da nicht konkret, allgemein natürlich immer gern.
fedorauser
/* Star Reduction using PixelMath, by Bill Blanshan -
Transfer Method - V3 */
S= 0.20 ;// <--To reduce stars size more, lower "S" value
Img1= Starless ;// <--Starless image name, yours must match
/*
Drag bottom left arrow over to the image you require star reduction
Enjoy!!
*/
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//equations
~((~mtf(~S,$T)/~mtf(~S,Img1))*~Img1); //Transfer method
/* Star Reduction using PixelMath, by Bill Blanshan -
Halo Method - V3 */
S= 0.20 ;// <--To reduce stars size more, lower "S" value
Img1= Starless ;// <--Starless image name, yours must match
/*
Drag bottom left arrow over to the image you require star reduction
Enjoy!!
*/
//equations
f2= ((~(~$T/~Img1)-~(~mtf(~S,$T)/~mtf(~S,Img1)))*~Img1);
f3= (~(~$T/~Img1)-~(~mtf(~S,$T)/~mtf(~S,Img1)));
$T*~mean(f2,f3)
//max(Img1,$T-mean(f2,f3))
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* Star Reduction using PixelMath, by Bill Blanshan -
Star Method - V3 */
Img1= Starless ;// <--Starless Image name
I= 2 ;// <--number of iterations, between 1-3
M= 2 ;// <--Method mode; 1=Strong; 2=Moderate; 3=Soft reductions
/* Drag bottom left arrow over to the image you require star reduction
Note:
Strong mode produces smaller sharp stars while removing small stars
Moderate mode still has sharp stars and some smaller stars
Soft mode is a simple star reduction of the original image */
//equations:
E1= $T*~(~(max(0,min(1,Img1/$T)))*~$T); //iteration-1
E2= max(E1,($T*E1)+(E1*~E1));
E3= E1*~(~(max(0,min(1,Img1/E1)))*~E1); //iteration-2
E4= max(E3,($T*E3)+(E3*~E3));
E5= E3*~(~(max(0,min(1,Img1/E3)))*~E3); //iteration-3
E6= max(E5,($T*E5)+(E5*~E5));
E7= iif(I==1,E1,iif(I==2,E3,E5)); // Strong reduction mode
E8= iif(I==1,E2,iif(I==2,E4,E6)); // Moderate reduction mode
E9= mean(
$T-($T-iif(I==1,E2,iif(I==2,E4,E6))),
$T*~($T-iif(I==1,E2,iif(I==2,E4,E6)))); //soft reduction mode
iif(M==1,E7,iif(M==2,E8,E9))
tomlicha
Achso, es geht nur ums konvertieren! Machs einfach so:
foreach($PIX1+$P_ix1-TkInTeR($Sir33+$il7==$PIX1)line++); // transscription mode
fedorauser
no, das ist direkt aus PIX in Pixlmath
Die Formeln konvertieren ist nicht da Problem denn das funktioniert schon als Script in Siril
Siril Script selbst kann keine Variablen verwalten und deshalb musste ich mir dem Zwischenspeichern der Ergebnisse Abhilfe verschaffen. Mit Python gibt es das Problem nicht mehr.