dm script - What are the commands to get and set the contrast Gamma setting of raster image displays? -


i trying overlay 2 images, want able pass gamma each of images final image. know 1 can , set contrast limits adjust intensity transformation (itt), have not found commands access gamma value.

am missing something? helpful able set gamma both images separately before overlaying them.

the according commands

number imagedisplaygetgammacorrection( imagedisplay imgdisp )

and

void imagedisplaysetgammacorrection( imagedisplay imgdisp, number gamma )

and used in following example:

image img1:=realimage("test1",4,256,256) img1 = icol showimage(img1) img1.imagegetimagedisplay(0).imagedisplaysetgammacorrection(0.6) 

Popular posts from this blog