public final class RGBA extends ColorFunction
ColorFunction.Channel
empty
Constructor and Description |
---|
RGBA(IFunction red,
IFunction green,
IFunction blue,
IFunction alpha) |
RGBA(IFunction fn,
int channel)
Creates an RGBA with only the given channel filled, from 1 to 4,
where RGBA is really ARGB and thus A=4, R=3, G=2, B=1.
|
RGBA(Image<? extends RealType<?>> img)
Interpret the @param img as an ARGB image.
|
RGBA(Object red)
|
RGBA(Object ob,
int channel)
Creates an RGBA with only the given channel filled, from 1 to 4,
where RGBA is really ARGB and thus A=4, R=3, G=2, B=1.
|
RGBA(Object red,
Object green)
|
RGBA(Object red,
Object green,
Object blue)
|
RGBA(Object red,
Object green,
Object blue,
Object alpha)
|
Modifier and Type | Method and Description |
---|---|
IFunction |
duplicate() |
double |
eval()
Returns each ARGB value packed in an
int that is casted to double . |
void |
findCursors(Collection<Cursor<?>> cursors)
Put any cursors in use by this function (and any nested functions) in @param cursors.
|
asImage, asImage, wrap
public RGBA(Object red, Object green, Object blue, Object alpha) throws Exception
Exception
public RGBA(IFunction fn, int channel) throws IllegalArgumentException
Exception
- If the channel < 1 or > 4.IllegalArgumentException
public RGBA(Object ob, int channel) throws Exception, IllegalArgumentException
ob
- can be an instance of Image
, Number
, IFunction
, or null.Exception
- If the channel < 1 or > 4.IllegalArgumentException
public final double eval()
int
that is casted to double
.
The integers are cropped to their lower byte.public final void findCursors(Collection<Cursor<?>> cursors)
IFunction
Copyright © 2015–2021 Fiji. All rights reserved.