public class ResizeImageInstanceIterator extends ImageInstanceIterator
Constructor and Description |
---|
ResizeImageInstanceIterator()
Empty constructor for Weka
|
ResizeImageInstanceIterator(ImageInstanceIterator iii,
int resizeWidth,
int resizeHeight)
Default constructor with the new shape
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight() |
ImageInstanceIterator |
getImageInstanceIterator() |
java.io.File |
getImagesLocation() |
int |
getNumChannels() |
int |
getTrainBatchSize()
Getting the training batch size
|
int |
getWidth() |
void |
setHeight(int height) |
void |
setImageInstanceIterator(ImageInstanceIterator iii) |
void |
setImagesLocation(java.io.File imagesLocation) |
void |
setNumChannels(int numChannels) |
void |
setTrainBatchSize(int trainBatchSize)
Setting the training batch size
|
void |
setWidth(int width) |
enforceZooModelSize, getChannelsLast, getDataSetIterator, getOptions, globalInfo, isMetaArff, listOptions, setChannelsLast, setOptions, validate
getDataSetIterator, initialize
public ResizeImageInstanceIterator()
public ResizeImageInstanceIterator(ImageInstanceIterator iii, int resizeWidth, int resizeHeight)
iii
- Previous image iteratorresizeWidth
- New image widthresizeHeight
- New image height@OptionMetadata(displayName="image iterator", description="The actual iterator used to load the images.", commandLineParamName="imageIterator", commandLineParamSynopsis="-imageIterator <ImageInstanceIterator>", displayOrder=1) public ImageInstanceIterator getImageInstanceIterator()
public void setImageInstanceIterator(ImageInstanceIterator iii)
@ProgrammaticProperty public int getTrainBatchSize()
AbstractInstanceIterator
getTrainBatchSize
in class AbstractInstanceIterator
@ProgrammaticProperty public void setTrainBatchSize(int trainBatchSize)
AbstractInstanceIterator
setTrainBatchSize
in class AbstractInstanceIterator
trainBatchSize
- the batch size@OptionMetadata(displayName="resize width", description="The width to resize the image to (default = 28).", commandLineParamName="resizeWidth", commandLineParamSynopsis="-resizeWidth <int>", displayOrder=2) public int getWidth()
getWidth
in interface ConvolutionalIterator
getWidth
in class ImageInstanceIterator
public void setWidth(int width)
setWidth
in class ImageInstanceIterator
@OptionMetadata(displayName="resize height", description="The height to resize the image to (default = 28).", commandLineParamName="resizeHeight", commandLineParamSynopsis="-resizeHeight <int>", displayOrder=3) public int getHeight()
getHeight
in interface ConvolutionalIterator
getHeight
in class ImageInstanceIterator
public void setHeight(int height)
setHeight
in class ImageInstanceIterator
@ProgrammaticProperty public int getNumChannels()
getNumChannels
in interface ConvolutionalIterator
getNumChannels
in class ImageInstanceIterator
@ProgrammaticProperty public void setNumChannels(int numChannels)
setNumChannels
in class ImageInstanceIterator
@ProgrammaticProperty public java.io.File getImagesLocation()
getImagesLocation
in class ImageInstanceIterator
@ProgrammaticProperty public void setImagesLocation(java.io.File imagesLocation)
setImagesLocation
in class ImageInstanceIterator