Home Image-Pro Plus Automation with Macros

Need Assistance Automating operation

Hi all,

I would like to create a macro to run an operation on all the images that are opened. The process that I am interested in running is:

ret = IpOpShow(1)
ret = IpOpImageArithmetics (1, 0.0, OPA_AVG+IMC_C_DIRECT,0)

But I would like to do this for every combination of image opened. Currently, the operation methods only allows this for 2 images at a time, not for multiple images. 

Any help will be greatly appreciated!

Thanks


Answers

  • When I tried to combine 3 different images using record macro, I got the following:

    ret = IpOpShow(1)
    ret = IpOpImageArithmetics (1, 0.0, OPA_AVG+IMC_C_DIRECT,0)
    ret = IpAppSelectDoc(0)
    ret = IpOpImageArithmetics (3, 0.0, OPA_AVG+IMC_C_DIRECT,0)

    However, I'd like the macro to combine all images, however many are opened.
  • You can load multiple images as a Sequence by selecting all of them in the Open file dialog with "Open as Sequence" option active. Then use the Average menu item from the Sequence menu to create the average.

    Yuri

Sign In or Register to comment.