@@ -84,13 +84,6 @@ public static < T extends RealType< T > & NativeType< T > > RandomAccessibleInte
84
84
}
85
85
}
86
86
87
- /**
88
- * Builds a {@link Img} from a unsigned byte-typed {@link NDArray}.
89
- *
90
- * @param tensor
91
- * The {@link NDArray} data is read from.
92
- * @return The {@link Img} built from the tensor of type {@link UnsignedByteType}.
93
- */
94
87
private static RandomAccessibleInterval <UnsignedByteType > buildFromTensorUByte (NDArray tensor ) {
95
88
long [] arrayShape = tensor .getShape ().getShape ();
96
89
if (CommonUtils .int32Overflows (arrayShape , 1 ))
@@ -103,13 +96,6 @@ private static RandomAccessibleInterval<UnsignedByteType> buildFromTensorUByte(N
103
96
return Utils .transpose (rai );
104
97
}
105
98
106
- /**
107
- * Builds a {@link Img} from a signed byte-typed {@link NDArray}.
108
- *
109
- * @param tensor
110
- * The {@link NDArray} data is read from.
111
- * @return The {@link Img} built from the tensor of type {@link ByteType}.
112
- */
113
99
private static RandomAccessibleInterval <ByteType > buildFromTensorByte (NDArray tensor ) {
114
100
long [] arrayShape = tensor .getShape ().getShape ();
115
101
if (CommonUtils .int32Overflows (arrayShape , 1 ))
@@ -122,13 +108,6 @@ private static RandomAccessibleInterval<ByteType> buildFromTensorByte(NDArray te
122
108
return Utils .transpose (rai );
123
109
}
124
110
125
- /**
126
- * Builds a {@link RandomAccessibleInterval} from a signed integer-typed {@link NDArray}.
127
- *
128
- * @param tensor
129
- * The {@link NDArray} data is read from.
130
- * @return The {@link RandomAccessibleInterval} built from the tensor of type {@link IntType}.
131
- */
132
111
private static RandomAccessibleInterval <IntType > buildFromTensorInt (NDArray tensor ) {
133
112
long [] arrayShape = tensor .getShape ().getShape ();
134
113
if (CommonUtils .int32Overflows (arrayShape , 1 ))
@@ -141,13 +120,6 @@ private static RandomAccessibleInterval<IntType> buildFromTensorInt(NDArray tens
141
120
return Utils .transpose (rai );
142
121
}
143
122
144
- /**
145
- * Builds a {@link RandomAccessibleInterval} from a signed float-typed {@link NDArray}.
146
- *
147
- * @param tensor
148
- * The {@link NDArray} data is read from.
149
- * @return The {@link RandomAccessibleInterval} built from the tensor of type {@link FloatType}.
150
- */
151
123
private static RandomAccessibleInterval <FloatType > buildFromTensorFloat (NDArray tensor ) {
152
124
long [] arrayShape = tensor .getShape ().getShape ();
153
125
if (CommonUtils .int32Overflows (arrayShape , 1 ))
@@ -160,13 +132,6 @@ private static RandomAccessibleInterval<FloatType> buildFromTensorFloat(NDArray
160
132
return Utils .transpose (rai );
161
133
}
162
134
163
- /**
164
- * Builds a {@link RandomAccessibleInterval} from a signed double-typed {@link NDArray}.
165
- *
166
- * @param tensor
167
- * The {@link NDArray} data is read from.
168
- * @return The {@link RandomAccessibleInterval} built from the tensor of type {@link DoubleType}.
169
- */
170
135
private static RandomAccessibleInterval <DoubleType > buildFromTensorDouble (NDArray tensor ) {
171
136
long [] arrayShape = tensor .getShape ().getShape ();
172
137
if (CommonUtils .int32Overflows (arrayShape , 1 ))
@@ -179,13 +144,6 @@ private static RandomAccessibleInterval<DoubleType> buildFromTensorDouble(NDArra
179
144
return Utils .transpose (rai );
180
145
}
181
146
182
- /**
183
- * Builds a {@link RandomAccessibleInterval} from a signed long-typed {@link NDArray}.
184
- *
185
- * @param tensor
186
- * The {@link NDArray} data is read from.
187
- * @return The {@link RandomAccessibleInterval} built from the tensor of type {@link DoubleType}.
188
- */
189
147
private static RandomAccessibleInterval <LongType > buildFromTensorLong (NDArray tensor ) {
190
148
long [] arrayShape = tensor .getShape ().getShape ();
191
149
if (CommonUtils .int32Overflows (arrayShape , 1 ))
0 commit comments