Page 1 of 4

Digital Image Processing

Posted: Sun Nov 08, 2020 12:43 am
by andyglezl
Hola
Aquí saliendo de la depresión de ya no tener trabajo fijo...

Tomando como base: \HMG\3.4.4\SAMPLES\BosTaurus\Demo10.prg
del Dr. Claudio Soto.
*-------------------------------------------------------------------------
Hi
Here coming out of the depression of no longer having a steady job ...

Based on: \HMG\3.4.4\SAMPLES\BosTaurus\Demo10.prg
by Dr. Claudio Soto.
QDIP_AGL.zip
(1.47 MiB) Downloaded 184 times
DIP1.jpg
DIP1.jpg (216.26 KiB) Viewed 3957 times
DIP2.jpg
DIP2.jpg (202.57 KiB) Viewed 3957 times

Re: Digital Image Processing

Posted: Sun Nov 08, 2020 1:03 pm
by mustafa
+10 Fabuloso !
Saludos Andrés
Mustafa

Re: Digital Image Processing

Posted: Mon Nov 09, 2020 7:54 pm
by andyglezl
Hola

* Ahora se puede cargar, procesar y salvar una imagen... ( JPG / PNG )
*------------------------------------------------------------
Hi

* Now you can load, process and save an image ... ( JPG / PNG )



* Manejar Brillantes y Contraste...
*---------------------------------------------
* Handle Bright and Contrast...
QDIP_AGL.zip
(1.47 MiB) Downloaded 159 times
DIP3.jpg.png
DIP3.jpg.png (1.5 MiB) Viewed 3790 times
DIP4.jpg.png
DIP4.jpg.png (814.35 KiB) Viewed 3788 times

Re: Digital Image Processing

Posted: Tue Nov 10, 2020 8:06 am
by serge_girard
Thanks Andrés and a happy birthday !!

Re: Digital Image Processing

Posted: Tue Nov 10, 2020 11:13 am
by jairpinho
congratulations great job

Re: Digital Image Processing

Posted: Tue Nov 10, 2020 7:32 pm
by andyglezl
Bueno, parece que me tope con el primer problema...
BT_BitmapGammaCorrect( hBitmap, RedGamma, GreenGamma, BlueGamma )
"RedGamma: is the Gamma Red color level to change (normally range between 0.2 and 5.0, none = 1.0)"
La función BT_BitmapGammaCorrect() maneja valores con decimales y al parecer esto no puede hacerse con los incrementos del control:
@ <nRow> ,<nCol> SPINNER <ControlName> . . . INCREMENT <nIncrement>

Alguna idea de como manejarlo ?
*-------------------------------------------------------------------------------
Well, I seem to run into the first problem ...
BT_BitmapGammaCorrect (hBitmap, RedGamma, GreenGamma, BlueGamma)
"RedGamma: is the Gamma Red color level to change (normally range between 0.2 and 5.0, none = 1.0)"
The BT_BitmapGammaCorrect () function handles values with decimals and apparently this cannot be done with the increments of the control:
@ <nRow>, <nCol> SPINNER <ControlName>. . . INCREMENT <nIncrement>

Any idea how to handle it?

Re: Digital Image Processing

Posted: Tue Nov 10, 2020 8:53 pm
by edk
andyglezl wrote: Tue Nov 10, 2020 7:32 pm Bueno, parece que me tope con el primer problema...
BT_BitmapGammaCorrect( hBitmap, RedGamma, GreenGamma, BlueGamma )
"RedGamma: is the Gamma Red color level to change (normally range between 0.2 and 5.0, none = 1.0)"
La función BT_BitmapGammaCorrect() maneja valores con decimales y al parecer esto no puede hacerse con los incrementos del control:
@ <nRow> ,<nCol> SPINNER <ControlName> . . . INCREMENT <nIncrement>

Alguna idea de como manejarlo ?
*-------------------------------------------------------------------------------
Well, I seem to run into the first problem ...
BT_BitmapGammaCorrect (hBitmap, RedGamma, GreenGamma, BlueGamma)
"RedGamma: is the Gamma Red color level to change (normally range between 0.2 and 5.0, none = 1.0)"
The BT_BitmapGammaCorrect () function handles values with decimals and apparently this cannot be done with the increments of the control:
@ <nRow>, <nCol> SPINNER <ControlName>. . . INCREMENT <nIncrement>

Any idea how to handle it?
It's simple: for a spinner control, multiply the allowed value by 10 (min: 2, max: 50, default: 10, increment: 1), and for setting a value for the BT_BitmapGammaCorrect () function, divide it by 10.
e.g. SpinnerRed = 2, SpinnerGreen = 10, SpinnerBlue = 50
BT_BitmapGammaCorrect (hBitmap , SpinnerRed / 10 , SpinnerGreen / 10 , SpinnerBlue / 10) => BT_BitmapGammaCorrect (hBitmap , 0.2 , 1.0 , 5.0)

Re: Digital Image Processing

Posted: Tue Nov 10, 2020 9:07 pm
by andyglezl
Perfecto, gracias por tu tiempo y tu respuesta edk
*-----------------------------------------------------------------
Perfect, thanks for your time and your answer edk

Re: Digital Image Processing

Posted: Thu Nov 12, 2020 11:10 pm
by andyglezl
Ahora se puede modificar la Gamma y aplicar varios Efectos...
+----------------------------------------------------------------------------------
Now you can modify the Gamma and apply various Effects ...
QDIP_AGL.zip
(1.41 MiB) Downloaded 157 times
IMG01-375-19.13-50.JPG
IMG01-375-19.13-50.JPG (994.87 KiB) Viewed 3635 times
IMG01-375-19.13-30.JPG
IMG01-375-19.13-30.JPG (1008.07 KiB) Viewed 3635 times
imagen_2020-11-12_172945.png
imagen_2020-11-12_172945.png (1.3 MiB) Viewed 3631 times

Re: Digital Image Processing

Posted: Fri Nov 13, 2020 10:28 am
by serge_girard
Andrés,

Great ! Is it possible to add effect such as 'cartoonize' ?
And ... undo?

Serge