Skip to content
Snippets Groups Projects
Commit ab84064d authored by carlosuc3m's avatar carlosuc3m
Browse files

remove unnecessary generic type

parent fa266af4
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ public final class ImgLib2Builder
* The tensor data is read from.
* @return The INDArray built from the tensor of type {@link DataType#UBYTE}.
*/
private static <T extends Type<T>> Img<ByteType> buildFromTensorByte(Tensor<UInt8> tensor)
private static Img<ByteType> buildFromTensorByte(Tensor<UInt8> tensor)
{
long[] tensorShape = tensor.shape();
final ImgFactory< ByteType > factory = new CellImgFactory<>( new ByteType(), 5 );
......@@ -98,7 +98,7 @@ public final class ImgLib2Builder
* The tensor data is read from.
* @return The sequence built from the tensor of type {@link DataType#INT}.
*/
private static <T extends Type<T>> Img<IntType> buildFromTensorInt(Tensor<Integer> tensor)
private static Img<IntType> buildFromTensorInt(Tensor<Integer> tensor)
{
long[] tensorShape = tensor.shape();
final ImgFactory< IntType > factory = new CellImgFactory<>( new IntType(), 5 );
......@@ -127,7 +127,7 @@ public final class ImgLib2Builder
* The tensor data is read from.
* @return The INDArray built from the tensor of type {@link DataType#FLOAT}.
*/
private static <T extends Type<T>> Img<FloatType> buildFromTensorFloat(Tensor<Float> tensor)
private static Img<FloatType> buildFromTensorFloat(Tensor<Float> tensor)
{
long[] tensorShape = tensor.shape();
final ImgFactory< FloatType > factory = new CellImgFactory<>( new FloatType(), 5 );
......@@ -156,7 +156,7 @@ public final class ImgLib2Builder
* The tensor data is read from.
* @return The INDArray built from the tensor of type {@link DataType#DOUBLE}.
*/
private static <T extends Type<T>> Img<DoubleType> buildFromTensorDouble(Tensor<Double> tensor)
private static Img<DoubleType> buildFromTensorDouble(Tensor<Double> tensor)
{
long[] tensorShape = tensor.shape();
final ImgFactory< DoubleType > factory = new CellImgFactory<>( new DoubleType(), 5 );
......
......@@ -82,7 +82,7 @@ public final class TensorBuilder
* @throws IllegalArgumentException
* If the ndarray type is not supported.
*/
private static <T extends Type<T>> Tensor<UInt8> buildByte(RandomAccessibleInterval<ByteType> imgTensor)
private static Tensor<UInt8> buildByte(RandomAccessibleInterval<ByteType> imgTensor)
{
long[] tensorShape = imgTensor.dimensionsAsLongArray();
Cursor<ByteType> tensorCursor;
......@@ -117,7 +117,7 @@ public final class TensorBuilder
* @throws IllegalArgumentException
* If the ndarray type is not supported.
*/
private static <T extends Type<T>> Tensor<Integer> buildInt(RandomAccessibleInterval<IntType> imgTensor)
private static Tensor<Integer> buildInt(RandomAccessibleInterval<IntType> imgTensor)
{
long[] tensorShape = imgTensor.dimensionsAsLongArray();
Cursor<IntType> tensorCursor;
......@@ -152,7 +152,7 @@ public final class TensorBuilder
* @throws IllegalArgumentException
* If the ndarray type is not supported.
*/
private static <T extends Type<T>> Tensor<Float> buildFloat(RandomAccessibleInterval<FloatType> imgTensor)
private static Tensor<Float> buildFloat(RandomAccessibleInterval<FloatType> imgTensor)
{
long[] tensorShape = imgTensor.dimensionsAsLongArray();
Cursor<FloatType> tensorCursor;
......@@ -187,7 +187,7 @@ public final class TensorBuilder
* @throws IllegalArgumentException
* If the ndarray type is not supported.
*/
private static <T extends Type<T>> Tensor<Double> buildDouble(RandomAccessibleInterval<DoubleType> imgTensor)
private static Tensor<Double> buildDouble(RandomAccessibleInterval<DoubleType> imgTensor)
{
long[] tensorShape = imgTensor.dimensionsAsLongArray();
Cursor<DoubleType> tensorCursor;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment