@@ -173,20 +173,20 @@ image_resample(py::array input_array,
173
173
174
174
if (auto resampler =
175
175
(ndim == 2 ) ? (
176
- (dtype.is (py::dtype::of<std::uint8_t >())) ? resample<agg::gray8> :
177
- (dtype.is (py::dtype::of<std::int8_t >())) ? resample<agg::gray8> :
178
- (dtype.is (py::dtype::of<std::uint16_t >())) ? resample<agg::gray16> :
179
- (dtype.is (py::dtype::of<std::int16_t >())) ? resample<agg::gray16> :
180
- (dtype.is (py::dtype::of<float >())) ? resample<agg::gray32> :
181
- (dtype.is (py::dtype::of<double >())) ? resample<agg::gray64> :
176
+ (dtype.equal (py::dtype::of<std::uint8_t >())) ? resample<agg::gray8> :
177
+ (dtype.equal (py::dtype::of<std::int8_t >())) ? resample<agg::gray8> :
178
+ (dtype.equal (py::dtype::of<std::uint16_t >())) ? resample<agg::gray16> :
179
+ (dtype.equal (py::dtype::of<std::int16_t >())) ? resample<agg::gray16> :
180
+ (dtype.equal (py::dtype::of<float >())) ? resample<agg::gray32> :
181
+ (dtype.equal (py::dtype::of<double >())) ? resample<agg::gray64> :
182
182
nullptr ) : (
183
183
// ndim == 3
184
- (dtype.is (py::dtype::of<std::uint8_t >())) ? resample<agg::rgba8> :
185
- (dtype.is (py::dtype::of<std::int8_t >())) ? resample<agg::rgba8> :
186
- (dtype.is (py::dtype::of<std::uint16_t >())) ? resample<agg::rgba16> :
187
- (dtype.is (py::dtype::of<std::int16_t >())) ? resample<agg::rgba16> :
188
- (dtype.is (py::dtype::of<float >())) ? resample<agg::rgba32> :
189
- (dtype.is (py::dtype::of<double >())) ? resample<agg::rgba64> :
184
+ (dtype.equal (py::dtype::of<std::uint8_t >())) ? resample<agg::rgba8> :
185
+ (dtype.equal (py::dtype::of<std::int8_t >())) ? resample<agg::rgba8> :
186
+ (dtype.equal (py::dtype::of<std::uint16_t >())) ? resample<agg::rgba16> :
187
+ (dtype.equal (py::dtype::of<std::int16_t >())) ? resample<agg::rgba16> :
188
+ (dtype.equal (py::dtype::of<float >())) ? resample<agg::rgba32> :
189
+ (dtype.equal (py::dtype::of<double >())) ? resample<agg::rgba64> :
190
190
nullptr )) {
191
191
Py_BEGIN_ALLOW_THREADS
192
192
resampler (
0 commit comments