Package net.paulhertz.pixelaudio
Class DiagonalZigzagGen
java.lang.Object
net.paulhertz.pixelaudio.PixelMapGen
net.paulhertz.pixelaudio.DiagonalZigzagGen
-
Field Summary
FieldsFields inherited from class net.paulhertz.pixelaudio.PixelMapGen
coords, h, pixelMap, sampleMap, size, transformType, w
-
Constructor Summary
ConstructorsConstructorDescriptionDiagonalZigzagGen
(int width, int height) DiagonalZigzagGen
(int width, int height, AffineTransformType type) -
Method Summary
Methods inherited from class net.paulhertz.pixelaudio.PixelMapGen
findNearestPowerOfTwoLessThan, findPowerOfTwo, getCoordinates, getCoordinatesCopy, getHeight, getInversMapFromPixelArray, getPixelMap, getPixelMapCopy, getPixelMapFromCoordinatess, getSampleMap, getSampleMapCopy, getSize, getTransformType, getWidth, isPowerOfTwo, loadIndexMaps, setMapsFromCoords, setTransformType, transformCoords
-
Field Details
-
description
- See Also:
-
-
Constructor Details
-
DiagonalZigzagGen
-
DiagonalZigzagGen
public DiagonalZigzagGen(int width, int height)
-
-
Method Details
-
describe
- Specified by:
describe
in classPixelMapGen
- Returns:
- A String describing the mapping generated by your class and any initialization requirements.
-
validate
public boolean validate(int width, int height) Always returns true for width and height greater than 1.- Specified by:
validate
in classPixelMapGen
- Returns:
- true if the width and height parameters are valid for creating a mapping with this generator, otherwise, false.
-
generate
public int[] generate()Initialize this.coords, this.pixelMap, this.sampleMap.- Specified by:
generate
in classPixelMapGen
- Returns:
- this.pixelMap, the value for PixelAudioMapper.signalToImageLUT.
-