P. 1
ProgrammingJavaTMAdvanced Imaging

ProgrammingJavaTMAdvanced Imaging

|Views: 30|Likes:

More info:

Published by: Optionz Sick's Banditz on Jul 05, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

12/24/2013

pdf

text

original

TheMultiplyComplexoperationmultipliestwoimagesrepresentingcomplex
data.Thesourceimagesmusteachcontainanevennumberofbands,withthe
withtheeven-indexedbands(0,2,etc.)representingtherealandtheodd-indexed
bands(1,3,etc.)theimaginarypartsofeachpixel.Thedestinationimage
similarlycontainsanevennumberofbandswiththesameinterpretationandwith
contentsdefinedby:

a = src0[x][y][2k];

b = src0[x][y][2k + 1];

c = src1[x][y][2k];

d = src1[x][y][2k + 1];

dst[x][y][2k] = a*c b*d;
dst[x][y][2k + 1] = a*d + b*c;

where

Withoneexception,thenumberofbandsofthedestinationimageisthesameas
theminimumofthenumberofbandsofthetwosourceimages,andthedatatype
isthebiggestdatatypeofthesources.Theexceptionoccurswhenoneofthe
sourceimageshastwobands,theothersourceimagehasN=2KbandswhereK
isgreaterthanone,andanImageLayouthintisprovidedcontainingadestination
SampleModelthatspecifiesM=2LbandsforthedestinationimagewhereLis
greaterthanoneandLK.InthisspecialcaseeachofthefirstLcomplex
componentsintheN-bandsourcewillbemultipliedbythesinglecomplex
componentintheone-bandsource.

Parameter

Type

Description

constants

double

The per-band constants to multiply by.

0knumBands
2

-------------------------

<

IMAGE MANIPULATION

Taking the Exponent of an Image

177

Release 1.0.1, November 1999

Iftheresultoftheoperationunderflowsoroverflowstheminimumormaximum
valuesupportedbythedestinationdatatype,itwillbeclampedtotheminimum
ormaximumvalue,respectively.

TheMultiplyComplexoperationtakestworenderedsourceimagesrepresenting
complexdataandnoparameters.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->