Hi all,

First of all sorry if this has been asked before but I didn´t find any similar subjects.

While trying to write a simple plugin to do the difference between two images (eg. abs(image2-image1)) I couldn´t find an imagelib2 operation to do such process. I also looked into using the op().ops().equation method but had no luck.

My solution was to do a loop trough all the pixels but this takes forever!

```
Cursor <Float> inputCursor = proj.cursor();
Cursor <Float> outputCursor = img.cursor();
for(int i = 0; i < 3; i++){
r.setPosition(i, 2);
outputCursor.reset();
while(inputCursor.hasNext()){
outputCursor.fwd();
inputCursor.fwd();
float sub3 = opService.math().subtract(outputCursor.get().getRealFloat(), inputCursor.get().getRealFloat());
double abs = opService.math().abs((double) sub3);
outputCursor.get().setReal((float) abs);
}
inputCursor.reset();
}
```

I also tried to do a subtraction and then the abs of the image but the subtraction always trimmed my negative pixels to 255 for some reason (using FloatType images).

Any indications appreciated.

Cheers,

Helio