Question

read data from geometric image analyze in a macro

  • 26 April 2024
  • 2 replies
  • 48 views

To speed up a macro I need to read out data from certain pixels from the geometric image analyze in a macro.

how do i do that


2 replies

Userlevel 5
Badge +3

Hi Fredrik, you get use the sample code below to extract the efficiency, it’s similar to go to the desired line. However, I am not sure if it’s the most efficient way.

! Get a temporary file name
A$ = $TEMPFILENAME()
! Compute the data and place in the temp file
GETTEXTFILE A$, Ima
! Open the new file and print it out
OPEN A$
for i,1,27,1
READSKIP -2
i = i+1
next
Read A,B,C,D
print D

thank you yuan

this helped

depending on how many rays I use this fastened up my macro a lot

 

Reply