|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGiciImageExtension.ImageExtension
public class ImageExtension
This class receives an image and performs an extension to the specified components.
Usage example:
construct
set functions
run
Field Summary | |
---|---|
(package private) int[] |
imageExtensionType
Extension Type for each of the channels. |
(package private) float[][][] |
imageSamples
Original image samples (index meaning [z][y][x]). |
(package private) int[] |
padRows
Number of 'padding' rows to delete after inverse DWT for each component |
(package private) boolean |
parametersSet
To know if parameters are set. |
(package private) int[] |
WTLevels
Definition in ForwardWaveletTransform.WTLevels |
(package private) int |
xSize
Image width. |
(package private) int |
ySize
Image height. |
(package private) int |
zSize
Number of image components. |
Constructor Summary | |
---|---|
ImageExtension(float[][][] imageSamples)
Constructor that receives the original image samples. |
Method Summary | |
---|---|
int |
getExtendedIndex(int indexToExtend,
int originalSize,
int extensionType)
Finds the index to extend a vector according to the type selected |
int[] |
getPadRows()
|
static boolean |
needImageExtension(int[] imageExtensionType,
int[] WTLevels,
int xSize,
int ySize,
int zSize)
Indicates whether image extension must be applied |
float[][][] |
run()
Performs the extension desired to each component |
void |
setParameters(int[] imageExtensionType,
int[] WTLevels)
Set the parameters used to do the image extension |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
float[][][] imageSamples
All values allowed.
int zSize
Negative values are not allowed for this field.
int ySize
Negative values are not allowed for this field.
int xSize
Negative values are not allowed for this field.
int[] imageExtensionType
Following values are allowed : 0 - Repeat last value (CCSDS Recommended). 1 - Symmetric extension. 2. - No Extension.
int[] WTLevels
ForwardWaveletTransform.WTLevels
boolean parametersSet
True indicates that they are set otherwise false.
int[] padRows
Negative values are not allowed.
Constructor Detail |
---|
public ImageExtension(float[][][] imageSamples)
imageSamples
- definition in imageSamples
Method Detail |
---|
public void setParameters(int[] imageExtensionType, int[] WTLevels)
imageExtensionType
- definition in imageExtensionType
WTLevels
- definition in ForwardWaveletTransform.WTLevels
public static boolean needImageExtension(int[] imageExtensionType, int[] WTLevels, int xSize, int ySize, int zSize)
imageExtensionType
- definition in imageExtensionType
WTLevels
- definition in ForwardWaveletTransform.WTLevels
xSize
- integer containing the width of the original imageySize
- integer containing the height of the original imagezSize
- number of components
public int getExtendedIndex(int indexToExtend, int originalSize, int extensionType)
indexToExtend
- index of the extended positionoriginalSize
- size of the original signalextensionType
- type of extension
public float[][][] run() throws ParameterException
ParameterException
- when an invalid or unrecognized exception is detected it will be thrownpublic int[] getPadRows()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |