|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.math.MTBImageArithmetics
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.
Field Summary | |
---|---|
private MTBOperator |
callingOperator
|
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' |
private MTBImage |
runOperation(MTBOperator callingOperator,
ImageArithmetics.ArithOp op,
MTBImage img,
double constant)
Run an operation with one input image and one input constant |
private MTBImage |
runOperation(MTBOperator callingOperator,
ImageArithmetics.ArithOp op,
MTBImage img1,
MTBImage img2)
Run an operation with two input images |
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 |
Field Detail |
---|
private MTBOperator callingOperator
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 abs(MTBImage img)
img
- input image
public MTBImage absDiff(MTBImage img1, MTBImage img2)
img1
- First input image.img2
- Second input image.
public MTBImage add(MTBImage img, double constant)
img
- input imageconstant
-
public MTBImage add(MTBImage img1, MTBImage img2)
img1
- img2
-
public MTBImage and(MTBImage img1, MTBImage img2)
img1
- First input image.img2
- Second input image.
public MTBImage div(MTBImage img1, MTBImage img2)
img1
- img2
-
public MTBImage inv(MTBImage img)
img
- input image
public MTBImage max(MTBImage img1, MTBImage img2)
img1
- img2
-
public MTBImage min(MTBImage img1, MTBImage img2)
img1
- img2
-
public MTBImage mult(MTBImage img, double constant)
img
- input imageconstant
-
public MTBImage mult(MTBImage img1, MTBImage img2)
img1
- img2
-
public MTBImage or(MTBImage img1, MTBImage img2)
img1
- First input image.img2
- Second input image.
public MTBImage pow(MTBImage img, double exponent)
img
- input imageexponent
-
private MTBImage runOperation(MTBOperator callingOperator, ImageArithmetics.ArithOp op, MTBImage img, double constant)
op
- img
- constant
-
private MTBImage runOperation(MTBOperator callingOperator, ImageArithmetics.ArithOp op, MTBImage img1, MTBImage img2)
callingOperator
- op
- img
- constant
-
public MTBImage sub(MTBImage img1, MTBImage img2)
img1
- img2
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |