45 template<
typename dtype>
50 uint32 boundarySize = inSize / 2;
51 uint32 imageSize = inImageWithBoundary.
size() - boundarySize * 2;
53 return inImageWithBoundary[
Slice(boundarySize, boundarySize + imageSize)];
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition StaticAsserts.hpp:39
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
size_type size() const noexcept
Definition NdArrayCore.hpp:4604
A Class for slicing into NdArrays.
Definition Slice.hpp:45
Definition addBoundary1d.hpp:44
NdArray< dtype > trimBoundary1d(const NdArray< dtype > &inImageWithBoundary, uint32 inSize)
Definition trimBoundary1d.hpp:46
std::uint32_t uint32
Definition Types.hpp:40