tomlicha Professional

  • from Nordbayern
  • Member since Oct 6th 2002
  • Last Activity:
Posts
1,454
Map Entry
no
Reactions Received
166
Points
18,504
Profile Hits
296
  • Hallo ich habe mal ne Entwicklerfrage wie bist du denn in Python aufgestellt in Verbindung mit TKINTER?

    • 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.

    • ^^ alles klar ichbin nur dabei ein Script aus PIX für Siril zu konvertieren.


      /* 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))

    • Achso, es geht nur ums konvertieren! Machs einfach so:


      foreach($PIX1+$P_ix1-TkInTeR($Sir33+$il7==$PIX1)line++); // transscription mode

    • 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.