OPEV issue with Reli

  • 8 December 2020
  • 1 reply
  • 21 views

  • Anonymous
  • 0 replies

Dear Sir,


I am trying to use OPEV to extract relative illumination


 


When I try to do this I just get an answer 1


 


See example below.


 


D=OCOD('RELI')    #


test=OPEV(D, pw, 11, 0, 0, 0, 0)


 


 


I can not work out why this does not work?


 


Please help


1 reply

Userlevel 4
Badge +2

Hi Matthew,


The syntax for RELI is 



And the syntax for OPEV is 


OPEV(code, int1, int2, data1, data2, data3, data4)


So int1 is the Sampling, int 2 the Wave, Data1 the Field, Data2 the Polarization, Data3 the target and Data4 the Weight.


It seems that in your example you are setting the field as 0, which doesn't exist. Also, you have to use double quotes (') instead of (').


I can extract relative illumination with something like this:



I hope it helps but let us know if not!


 


 

Reply