|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.math.images.MTBImageArithmetics
@ALDMetaInfo(export=ALLOWED) public class MTBImageArithmetics
This class that provides convenience functions for the ImageArithmetics
class.
Operations with one input image result in images of the same type!!
Operations with two input images result in an image of type of the higher input image precision!!
If two input images do not have the same size the resulting image is null.
Each operation is elementwise.
Constructor Summary | |
---|---|
MTBImageArithmetics()
Constructor. |
|
MTBImageArithmetics(MTBOperator callingOperator)
Constructor with calling operator. |
Method Summary | |
---|---|
MTBImage |
abs(MTBImage img)
Absolute values of the image elements. |
MTBImage |
absDiff(MTBImage img1,
MTBImage img2)
Absolute difference of two images. |
MTBImage |
add(MTBImage img,
double constant)
Add a constant to each image value |
MTBImage |
add(MTBImage img1,
MTBImage img2)
Add the elements two images |
MTBImage |
and(MTBImage img1,
MTBImage img2)
Bitwise logical AND of two images. |
MTBImage |
div(MTBImage img1,
MTBImage img2)
Divide the elements of two images (img1/img2) |
MTBImage |
inv(MTBImage img)
Invert the image. |
MTBImage |
max(MTBImage img1,
MTBImage img2)
Pixelwise maximum |
MTBImage |
min(MTBImage img1,
MTBImage img2)
Pixelwise minimum |
MTBImage |
mult(MTBImage img,
double constant)
Multiply each image value by a constant |
MTBImage |
mult(MTBImage img1,
MTBImage img2)
Multiply the elements of two images |
MTBImage |
or(MTBImage img1,
MTBImage img2)
Bitwise logical OR of two images. |
MTBImage |
pow(MTBImage img,
double exponent)
Raise image values to the power of 'exponent' |
MTBImage |
sub(MTBImage img1,
MTBImage img2)
Subtract the elements two images (img1 - img2) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MTBImageArithmetics() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public MTBImageArithmetics(MTBOperator callingOperator) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail |
---|
public MTBImage pow(MTBImage img, double exponent)
img
- input imageexponent
-
public MTBImage add(MTBImage img, double constant)
img
- input imageconstant
-
public MTBImage mult(MTBImage img, double constant)
img
- input imageconstant
-
public MTBImage inv(MTBImage img)
img
- input image
public MTBImage abs(MTBImage img)
img
- input image
public MTBImage add(MTBImage img1, MTBImage img2)
img1
- img2
-
public MTBImage sub(MTBImage img1, MTBImage img2)
img1
- img2
-
public MTBImage mult(MTBImage img1, MTBImage img2)
img1
- img2
-
public MTBImage div(MTBImage img1, MTBImage img2)
img1
- img2
-
public MTBImage min(MTBImage img1, MTBImage img2)
img1
- img2
-
public MTBImage max(MTBImage img1, MTBImage img2)
img1
- img2
-
public MTBImage and(MTBImage img1, MTBImage img2)
img1
- First input image.img2
- Second input image.
public MTBImage or(MTBImage img1, MTBImage img2)
img1
- First input image.img2
- Second input image.
public MTBImage absDiff(MTBImage img1, MTBImage img2)
img1
- First input image.img2
- Second input image.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |