> RGB to BGR script works, but how to run auto levels?

Autolevels is a missing feature on the PDB up to 1.2.5 and 1.3.18 - 
I've worked in a PDB entry to it together with Shawn Willden. 
Although I do not know if our contributionis beignn commited into 
1.3.19 - I am compiling it now.
(BUG 119233)

Regards,
        JS
        -><-

On Saturday 30 August 2003 3:06 pm, Walter Francis wrote:
> Shooting IR using a Hoya 72A I get a good amount of false colour in
> the images, and by decomposing RGB and recomposing BGR the sky gets
> a nice blue cast to it and makes the image look better.
>
> I took apart another script and experimented around and came up
> with the script at the bottom.  This is for gimp 1.3.18, not sure
> if older versions have different arguments.
>
> I also run auto levels on the images when I'm done, but so far it
> looks like this is not possible from Script-fu.  Any updates on
> there?  At least now I just push two buttons instead of decompose,
> compose, pick images, etc.
>
> Thanks!
>
> (define (script-fu-irchannelswap inImage inLayer)
>
> (let* ((width (car (gimp-drawable-width inLayer)))
> (height (car (gimp-drawable-height inLayer))) )
>
> (set! new-image-red (car (plug-in-decompose 1 inImage inLayer
> "Red"))) (set! new-image-green (car (plug-in-decompose 1 inImage
> inLayer "Green"))) (set! new-image-blue (car (plug-in-decompose 1
> inImage inLayer "Blue"))) (set! new-image-bgr (car (plug-in-compose
> 1 new-image-blue inLayer new-image-green new-ima ge-red
> new-image-red "RGB")))
> (gimp-display-new new-image-bgr)
> (gimp-image-delete new-image-red)
> (gimp-image-delete new-image-green)
> (gimp-image-delete new-image-blue)
> (gimp-displays-flush)
>
> ))
>
> (script-fu-register
> "script-fu-irchannelswap"
> "<Image>/Script-Fu/Enhance/IR Channel Swap"
> "Channel Swap and Auto Levels"
> "Walter Francis"
> "copyright 2003, Walter Francis"
> "2003-08-30"
> ""
> SF-IMAGE "The Image" 0
> SF-DRAWABLE "The Layer" 0
> )
>
> _______________________________________________
> Gimp-user mailing list
> [EMAIL PROTECTED]
> http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user

-- 

Este e-mail é, exceto pelas partes citadas
de outros e-mails, copyright(c) de João Sebastião
de Oliveira Bueno. Nenhuma cópia deste e-mail ou 
parte do mesmo pode existir nas dependências 
de, ou em posse de funcionários, de associações
protetoras de direitos autorais Brasileiras,
 dos Estados Unidos da América, ou de outros
países. Em particular essa exceção do direito
de leitura e posse deste e-mail se extende à
ABRA, ABPI, ABES, BSA, RIAA e MPAA. Violadores
estão infringindo as leis internacionais de 
direitos autorais e sujeitos às penalidades cabíveis.
Você pode re-utilizar, emendar,  acrescentar
suas palavras e citar e re-enviar qualquer 
parte do mesmo, desde que essa nota seja 
preservada e se não pertencer a alguma
das entidades supracitadas.



_______________________________________________
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user

Reply via email to