Class CropAndResizeDataSetPreProcessor
- java.lang.Object
-
- org.nd4j.linalg.dataset.api.preprocessor.CropAndResizeDataSetPreProcessor
-
- All Implemented Interfaces:
Serializable,DataSetPreProcessor
public class CropAndResizeDataSetPreProcessor extends Object implements DataSetPreProcessor
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCropAndResizeDataSetPreProcessor.ResizeMethod
-
Constructor Summary
Constructors Constructor Description CropAndResizeDataSetPreProcessor(int originalHeight, int originalWidth, int cropYStart, int cropXStart, int resizedHeight, int resizedWidth, int numChannels, CropAndResizeDataSetPreProcessor.ResizeMethod resizeMethod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpreProcess(DataSet dataSet)NOTE: The data format must be NHWC
-
-
-
Constructor Detail
-
CropAndResizeDataSetPreProcessor
public CropAndResizeDataSetPreProcessor(int originalHeight, int originalWidth, int cropYStart, int cropXStart, int resizedHeight, int resizedWidth, int numChannels, CropAndResizeDataSetPreProcessor.ResizeMethod resizeMethod)- Parameters:
originalHeight- Height of the input datasetsoriginalWidth- Width of the input datasetscropYStart- y coord of the starting point on the input datasetscropXStart- x coord of the starting point on the input datasetsresizedHeight- Height of the output datasetresizedWidth- Width of the output datasetnumChannels-resizeMethod-
-
-
Method Detail
-
preProcess
public void preProcess(DataSet dataSet)
NOTE: The data format must be NHWC- Specified by:
preProcessin interfaceDataSetPreProcessor- Parameters:
dataSet- the data set to pre process
-
-