Home
last modified time | relevance | path

Searched refs:Crop (Results 1 – 25 of 55) sorted by relevance

123

/third_party/mindspore/tests/ut/python/dataset/
Dtest_crop.py40 crop_op = c_vision.Crop((0, 0), (20, 25))
71 img_ms = c_vision.Crop((20, 50), (30, 50))(img)
83 _ = c_vision.Crop([-10, 0], [20])
88 _ = c_vision.Crop([0, 5.2], [10, 10])
93 _ = c_vision.Crop([0], [28])
98 _ = c_vision.Crop((0, 0), -1)
103 _ = c_vision.Crop((0, 0), (10.5, 15))
108 _ = c_vision.Crop((0, 0), (0, 10, 20))
/third_party/mindspore/mindspore/core/ops/
Dcrop.cc25 void Crop::Init(const int64_t axis, const std::vector<int64_t> &offsets) { in Init()
30 void Crop::set_axis(const int64_t axis) { (void)this->AddAttr(kAxis, MakeValue(axis)); } in set_axis()
32 int64_t Crop::get_axis() const { in get_axis()
37 void Crop::set_offsets(const std::vector<int64_t> &offsets) { (void)this->AddAttr(kOffsets, MakeVal… in set_offsets()
39 std::vector<int64_t> Crop::get_offsets() const { in get_offsets()
58 REGISTER_PRIMITIVE_C(kNameCrop, Crop);
Dcrop.h30 class MS_CORE_API Crop : public PrimitiveC {
33 Crop() : PrimitiveC(kNameCrop) {} in Crop() function
36 ~Crop() = default;
38 MS_DECLARE_PARENT(Crop, PrimitiveC);
68 using PrimCrop = std::shared_ptr<Crop>;
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/
Dcenter_crop_op.cc61 return Crop(pad_image, output, (static_cast<int32_t>(pad_image->shape()[1]) - crop_wid_) / 2, in Compute()
65 return Crop(pad_image, output, (static_cast<int32_t>(pad_image->shape()[1]) - crop_wid_) / 2, in Compute()
68 …return Crop(input, output, (input->shape()[1] - crop_wid_) / 2, (input->shape()[0] - crop_het_) / … in Compute()
Dcrop_op.cc37 return Crop(input, output, x_, y_, width_, height_); in Compute()
Drandom_crop_with_bbox_op.cc62 …return Crop(pad_image, &(*output)[0], x, y, RandomCropOp::crop_width_, RandomCropOp::crop_height_); in Compute()
Dbounding_box_augment_op.cc44 …RETURN_IF_NOT_OK(Crop(input_restore, &crop_out, static_cast<int>(bbox->x()), static_cast<int>(bbox… in Compute()
Dcutmix_batch_op.cc125 RETURN_IF_NOT_OK(Crop(rand_image, &cropped, x, y, crop_width, crop_height)); in ComputeImage()
139 RETURN_IF_NOT_OK(Crop(channel, &cropped_channel, x, y, crop_width, crop_height)); in ComputeImage()
Dlite_image_utils.h64 Status Crop(const std::shared_ptr<Tensor> &input, std::shared_ptr<Tensor> *output, int x, int y, in…
Drandom_crop_op.cc160 RETURN_IF_NOT_OK(Crop(pad_image, &(*output)[i], x, y, crop_width_, crop_height_)); in Compute()
Dimage_utils.h135 Status Crop(const std::shared_ptr<Tensor> &input, std::shared_ptr<Tensor> *output, int x, int y, in…
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/include/dataset/
Dvision_lite.h97 class Crop final : public TensorTransform {
104 Crop(std::vector<int32_t> coordinates, std::vector<int32_t> size);
107 ~Crop() = default;
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/
Dcrop_infer.c35 REG_INFER(Crop, PrimType_Crop, CropInferShape)
/third_party/mindspore/mindspore/lite/tools/converter/parser/caffe/
Dcaffe_crop_parser.cc25 auto prim = std::make_unique<ops::Crop>(); in Parse()
/third_party/mindspore/tests/ut/cpp/ops/
Dtest_ops_crop.cc35 auto crop = std::make_shared<Crop>(); in TEST_F()
/third_party/skia/third_party/externals/libjpeg-turbo/gtest/
Djpegtran-gtest-wrapper.cpp61 TEST(JPEGTranTest, Crop) { in TEST() argument
/third_party/mindspore/tests/ut/cpp/dataset/
Dc_api_vision_a_to_q_test.cc281 std::shared_ptr<TensorTransform> crop(new vision::Crop({0, 0}, {height, width})); in TEST_F()
327 std::shared_ptr<TensorTransform> crop1(new vision::Crop({-1, -1}, {20})); in TEST_F()
337 std::shared_ptr<TensorTransform> crop2(new vision::Crop({5}, {10})); in TEST_F()
347 std::shared_ptr<TensorTransform> crop3(new vision::Crop({0, 0}, {-10, -5})); in TEST_F()
357 std::shared_ptr<TensorTransform> crop4(new vision::Crop({0, 0}, {10, 10, 10})); in TEST_F()
Drandom_crop_decode_resize_op_test.cc138 crop_and_decode_status = Crop(decoded, &decoded_and_cropped, x, y, crop_width, crop_height); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/lite_cv/
Dimage_process.h99 bool Crop(const LiteMat &src, LiteMat &dst, int x, int y, int w, int h);
/third_party/mindspore/mindspore/lite/minddata/wrapper/
DMDToDApi.cc138 std::vector<int> Crop(MDConf.CropSizeWH, MDConf.CropSizeWH + 2); in MDToDApi_createPipeLine() local
139 … std::shared_ptr<TensorOperation> center_crop_op = mindspore::dataset::vision::CenterCrop(Crop); in MDToDApi_createPipeLine()
/third_party/mindspore/mindspore/lite/schema/
Dmodel_v0.fbs95 Crop,
/third_party/mindspore/mindspore/lite/tools/dataset/cropper/
DREADME.md25 ## Step 2: Crop the MindData lite package
/third_party/mindspore/mindspore/lite/src/ops/
Dops_func_declare.h298 FUNC_MSOP2SCHEMAOP_DECLARE(Crop)
Dops_def.cc58 OP_TYPE(Crop)
449 OP_SCHEMA_DEF(Crop)
452 OP_SCHEMA_DEF_END(Crop)
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/
Dvision.cc219 struct Crop::Data {
226 Crop::Crop(std::vector<int32_t> coordinates, std::vector<int32_t> size) in Crop() function in mindspore::dataset::vision::Crop
229 std::shared_ptr<TensorOperation> Crop::Parse() { in Parse()

123