Colorize Image with Spot Channel

Discussions about image processing and document imaging.
Post Reply
giraudbr
Posts: 6
Joined: Wed Apr 09, 2014 7:41 pm

Colorize Image with Spot Channel

Post by giraudbr » Fri May 02, 2014 9:17 pm

Hi,

I am trying to reproduce precisely the Photoshop result with CDPicture. The objective is to a have the exact same result Colorizing a spot channel of Photoshop with a file that had flowers with MIDTONES
The process is :
1 - transform the channel in -TRUECOLORS and use -BALANCE to colorize the channel :
the command line is : "NConvert -o "FlowersTrueRGB .png" -truecolours -balance 166 196 151 "FlowersChannel.png" "
Annexed : "FlowersChannel.png" / "FlowersTrueRGB.png" / "Flowers.psd"
Also Annexed : a Print-Screen of Photoshop with both : "FlowersTrueRGB.png" and "Flowers.psd" side by side
GDPicture-Support.PNG
the process works perfectly. BUT, comparing on Photoshop :
The original PSD (also colored with the same RGB color X the file colored with GDPicture - we have the following results :
1 - The color is OK
2 - The intensity of the Grey scales has been changed on GDPicture file and there is a BIG visual Difference from the original.

How can be adjusted the process to keep the same results as Photoshop, please.
Thanks.

CODE :
ImgCamada is string = "F:\Temp\PSD\Teste Grande\FlowersChannel.png"

Status is int
nNativeImageHandle1 = 0
ocxGdVwImgOrigCamada1>>Clear()
ocxGdVwImgOrigCamada1>>CloseImage()
nNativeImageHandle1 = ocxGdPicImgOrigCamada>>GetNativeImage()
ocxGdPicImgOrigCamada>>CloseImage((nNativeImageHandle1))
ocxGdPicImgOrigCamada>>CloseNativeImage()

Colortex.ocxGdVwImgOrigCamada1>>DisplayFromFile(ImgCamada)
ocxGdVwImgOrigCamada1>>SetZoomFitControl()

ocxGdPicImgOrigCamada>>CreateImageFromFile(ImgCamada)


IF ocxGdPicImgOrigCamada>>GetStat = 0 THEN
nNativeImageHandle1 = ocxGdPicImgOrigCamada>>GetNativeImage()
ocxGdPicImgOrigCamada>>SetNativeImage((nNativeImageHandle1))
END

ocxGdPicImgOrigCamada>>AdjustRGB(Val(EdtRFinal1)-Val(EdtRoriginal)-3,0,0)
ocxGdPicImgOrigCamada>>AdjustRGB(0,Val(EdtGfinal1)-Val(EdtGoriginal)-3,0)
ocxGdPicImgOrigCamada>>AdjustRGB(0,0,Val(EdtBfinal1)-Val(EdtBoriginal)-3)

nNativeImageHandle1 = ocxGdPicImgOrigCamada>>GetNativeImage()

ocxGdVwImgOrigCamada1x>>DisplayFromGdPictureImage((nNativeImageHandle1))
ocxGdVwImgOrigCamada1x>>SetZoomFitControl()

ArqExportado is string = "F:\Temp\PSD\testexxx_png\FlowersTrueRGB.png"
ocxGdPicImgOrigCamada>>SaveAsPNG(ArqExportado)
Attachments
FlowersTrueRGB.png
FlowersChannel.png

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Colorize Image with Spot Channel

Post by SamiKharma » Mon May 05, 2014 1:35 pm

Hi,

The thread question is really confusing since there is code in the body of the thread.
In any case, are you using GdPicture.NET or the old GdPicture V. 1-2-3-4-5 Series [Legacy]? If it is the latter please post your question here: gdpicture-series/

If not (i.e you are using GdPicture.NET), could you please attach the image you are talking about?

Best,
Sami

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest