import ImageScalingMixins from 'causal-net/packages/causality-preprocessing/src/Image/imageScaling.mixins.js'ImageScalingMixins
Extends:
PreprocessingClass → ImageScalingMixins
Method Summary
| Public Methods | ||
| public |
imageResize(sampleBuffer: Array | Buffer , originSize: Array , newSize: Array ): Array scaling image from origin size to new size, image chanel must be 4 |
|
Public Methods
public imageResize(sampleBuffer: Array | Buffer , originSize: Array , newSize: Array ): Array source
scaling image from origin size to new size, image chanel must be 4
Params:
| Name | Type | Attribute | Description |
| sampleBuffer | Array | Buffer | original image |
|
| originSize | Array | originize of image [weight, height] |
|
| newSize | Array | new size of image [weight, height] |
Return:
| Array | array of sub image |