> 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