2016-07-30 18 views
2

スクリプトを使用して画像のコントラストを変更する必要があります。残念ながら、私はそれを行う方法がわかりません。DMスクリプトで画像のコントラストを変更する

私は、ヘルプドキュメントを検索したが、結果は正しい答えに

感謝を与えることはありません。

答えて

0

あなたのための最も簡単なコマンドでは、次の例のように、SetLimits最も可能性が高いです。

image img := Realimage("Test",4,256,256) 
img = iradius + icol 
ShowImage(img) 

SetLimits(img, 100, 150) 

いますが、imageDisplayセクションのヘルプドキュメントに例を見てみたいことがあります。

この例すなわち

enter image description here

// create image 
image myImage := Realimage("Test",4,256,256) 
myImage = iradius + icol 
ShowImage(myImage) 

ImageDisplay imageDisp = myImage.ImageGetImageDisplay(0) 

// get display info 
number low, high, bright, contrast 
imageDisp.ImageDisplayGetContrastLimits(low, high) 
imageDisp.ImageDisplayGetContrastParameters(bright, contrast) 

// get color table 
Image colorTable := imageDisp.ImageDisplayGetInputColorTable() 

// modify it 
colorTable = rgb(icol + 16 * irow, 255 - icol - 16 * irow, 128) 

// apply color table 
imageDisp.ImageDisplaySetInputColorTable(colorTable) 
+0

ありがとう、私は複雑な画像 –

+0

@ FabianVでこの手順を実行しようとします。複雑な画像の場合、「モード」も重要です。これには 'ImageDisplayGetComplexMode'と' ImageDisplaySetComplexMode'を使います。 – BmyGuest

関連する問題