Skip to content

Commit

Permalink
improve javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Oct 1, 2024
1 parent e0cc2a8 commit 1f81d2a
Showing 1 changed file with 0 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,6 @@ public static < T extends RealType< T > & NativeType< T > > RandomAccessibleInte
}
}

/**
* Builds a {@link Img} from a unsigned byte-typed {@link NDArray}.
*
* @param tensor
* The {@link NDArray} data is read from.
* @return The {@link Img} built from the tensor of type {@link UnsignedByteType}.
*/
private static RandomAccessibleInterval<UnsignedByteType> buildFromTensorUByte(NDArray tensor) {
long[] arrayShape = tensor.getShape().getShape();
if (CommonUtils.int32Overflows(arrayShape, 1))
Expand All @@ -103,13 +96,6 @@ private static RandomAccessibleInterval<UnsignedByteType> buildFromTensorUByte(N
return Utils.transpose(rai);
}

/**
* Builds a {@link Img} from a signed byte-typed {@link NDArray}.
*
* @param tensor
* The {@link NDArray} data is read from.
* @return The {@link Img} built from the tensor of type {@link ByteType}.
*/
private static RandomAccessibleInterval<ByteType> buildFromTensorByte(NDArray tensor) {
long[] arrayShape = tensor.getShape().getShape();
if (CommonUtils.int32Overflows(arrayShape, 1))
Expand All @@ -122,13 +108,6 @@ private static RandomAccessibleInterval<ByteType> buildFromTensorByte(NDArray te
return Utils.transpose(rai);
}

/**
* Builds a {@link RandomAccessibleInterval} from a signed integer-typed {@link NDArray}.
*
* @param tensor
* The {@link NDArray} data is read from.
* @return The {@link RandomAccessibleInterval} built from the tensor of type {@link IntType}.
*/
private static RandomAccessibleInterval<IntType> buildFromTensorInt(NDArray tensor) {
long[] arrayShape = tensor.getShape().getShape();
if (CommonUtils.int32Overflows(arrayShape, 1))
Expand All @@ -141,13 +120,6 @@ private static RandomAccessibleInterval<IntType> buildFromTensorInt(NDArray tens
return Utils.transpose(rai);
}

/**
* Builds a {@link RandomAccessibleInterval} from a signed float-typed {@link NDArray}.
*
* @param tensor
* The {@link NDArray} data is read from.
* @return The {@link RandomAccessibleInterval} built from the tensor of type {@link FloatType}.
*/
private static RandomAccessibleInterval<FloatType> buildFromTensorFloat(NDArray tensor) {
long[] arrayShape = tensor.getShape().getShape();
if (CommonUtils.int32Overflows(arrayShape, 1))
Expand All @@ -160,13 +132,6 @@ private static RandomAccessibleInterval<FloatType> buildFromTensorFloat(NDArray
return Utils.transpose(rai);
}

/**
* Builds a {@link RandomAccessibleInterval} from a signed double-typed {@link NDArray}.
*
* @param tensor
* The {@link NDArray} data is read from.
* @return The {@link RandomAccessibleInterval} built from the tensor of type {@link DoubleType}.
*/
private static RandomAccessibleInterval<DoubleType> buildFromTensorDouble(NDArray tensor) {
long[] arrayShape = tensor.getShape().getShape();
if (CommonUtils.int32Overflows(arrayShape, 1))
Expand All @@ -179,13 +144,6 @@ private static RandomAccessibleInterval<DoubleType> buildFromTensorDouble(NDArra
return Utils.transpose(rai);
}

/**
* Builds a {@link RandomAccessibleInterval} from a signed long-typed {@link NDArray}.
*
* @param tensor
* The {@link NDArray} data is read from.
* @return The {@link RandomAccessibleInterval} built from the tensor of type {@link DoubleType}.
*/
private static RandomAccessibleInterval<LongType> buildFromTensorLong(NDArray tensor) {
long[] arrayShape = tensor.getShape().getShape();
if (CommonUtils.int32Overflows(arrayShape, 1))
Expand Down

0 comments on commit 1f81d2a

Please sign in to comment.