/dports/math/py-Pyomo/Pyomo-6.1.2/pyomo/contrib/benders/tests/ |
H A D | test_benders.py | 41 self.crops = ['WHEAT', 'CORN', 'SUGAR_BEETS'] 62 m.crops = pyo.Set(initialize=farmer.crops, ordered=True) 80 m.crops = pyo.Set(initialize=farmer.crops, ordered=True) 82 m.devoted_acreage = pyo.Var(m.crops) 85 m.QuantityPurchased = pyo.Var(m.crops, bounds=(0.0, None)) 110 for crop in m.crops: 190 self.crops = ['WHEAT', 'CORN', 'SUGAR_BEETS'] 213 m.crops = pyo.Set(initialize=farmer.crops, ordered=True) 231 m.crops = pyo.Set(initialize=farmer.crops, ordered=True) 233 m.devoted_acreage = pyo.Var(m.crops) [all …]
|
/dports/math/py-Pyomo/Pyomo-6.1.2/pyomo/contrib/benders/examples/ |
H A D | farmer.py | 28 self.crops = ['WHEAT', 'CORN', 'SUGAR_BEETS'] 50 m.crops = pyo.Set(initialize=farmer.crops, ordered=True) 53 m.devoted_acreage = pyo.Var(m.crops, bounds=(0, farmer.total_acreage)) 67 m.crops = pyo.Set(initialize=farmer.crops, ordered=True) 69 m.devoted_acreage = pyo.Var(m.crops) 70 m.QuantitySubQuotaSold = pyo.Var(m.crops, bounds=(0.0, None)) 71 m.QuantitySuperQuotaSold = pyo.Var(m.crops, bounds=(0.0, None)) 72 m.QuantityPurchased = pyo.Var(m.crops, bounds=(0.0, None)) 81 m.LimitAmountSold = pyo.Constraint(m.crops, rule=LimitAmountSold_rule) 85 m.EnforceQuotas = pyo.Constraint(m.crops, rule=EnforceQuotas_rule) [all …]
|
/dports/misc/mnn/MNN-1.2.0/source/backend/cpu/ |
H A D | CPUCropAndResize.cpp | 24 Tensor* crops) { in CropAndResize() argument 32 const int numBoxes = crops->buffer().dim[0].extent; in CropAndResize() 33 const int cropHeight = crops->buffer().dim[1].extent; in CropAndResize() 34 const int cropWidth = crops->buffer().dim[2].extent; in CropAndResize() 35 const int depth = crops->buffer().dim[3].extent; in CropAndResize() 38 memset(crops->host<float>(), 0, crops->size()); in CropAndResize() 56 int32_t cropsHeight = crops->buffer().dim[1].extent; in CropAndResize() 57 int32_t cropsWidth = crops->buffer().dim[2].extent; in CropAndResize() 58 int32_t cropsDepth = crops->buffer().dim[3].extent; in CropAndResize() 66 crops->host<float>()[b * cropsHeight * cropsWidth * cropsDepth + in CropAndResize() [all …]
|
/dports/graphics/py-scikit-image/scikit-image-0.19.0/skimage/util/ |
H A D | arraycrop.py | 44 crops = [[crop_width, crop_width]] * ar.ndim 47 crops = [[crop_width[0], crop_width[0]]] * ar.ndim 49 crops = [crop_width] * ar.ndim 57 crops = [crop_width[0]] * ar.ndim 59 crops = crop_width 68 for i, (a, b) in enumerate(crops))
|
/dports/multimedia/handbrake/HandBrake-1.4.2/libhb/ |
H A D | scan.c | 412 crop_record_t *crops = calloc( 1, sizeof(*crops) ); in crop_record_init() local 419 return crops; in crop_record_init() 433 crops->t[crops->n] = t; in record_crop() 434 crops->b[crops->n] = b; in record_crop() 435 crops->l[crops->n] = l; in record_crop() 436 crops->r[crops->n] = r; in record_crop() 437 ++crops->n; in record_crop() 447 qsort( crops->t, crops->n, sizeof(crops->t[0]), compare_int ); in sort_crops() 448 qsort( crops->b, crops->n, sizeof(crops->t[0]), compare_int ); in sort_crops() 449 qsort( crops->l, crops->n, sizeof(crops->t[0]), compare_int ); in sort_crops() [all …]
|
/dports/science/py-chainer/chainer-7.8.0/chainer/utils/ |
H A D | imgproc.py | 22 crops = numpy.empty( 27 crops[ix] = img[:, crop[0]:crop[2], crop[1]:crop[3]] 29 crops[ix:ix + 5] = crops[ix - 5:ix, :, :, ::-1] 31 return crops
|
/dports/print/pdfarranger/pdfarranger-1.8.0/pdfarranger/ |
H A D | splitter.py | 169 crops = [(0, 0.01 * self.model[direction][0][1])] * num_splits 174 crops[i] = (crops[i-1][1], crops[i-1][1] + size) 177 crops = [t for t in crops if t[0] < t[1]] 181 return crops 192 crops[0] = (0, size) 194 start = crops[i-1][1] - overlap_per_tile 196 crops[i] = (start, end) 197 crops[-1] = (1.0 - size, 1.0) 198 return crops
|
/dports/science/py-dlib/dlib-19.22/examples/ |
H A D | random_cropper_ex.cpp | 64 std::vector<matrix<rgb_pixel>> crops; in main() local 67 cropper(1000, images, boxes, crops, crop_boxes); in main() 71 for (size_t i = 0; i < crops.size(); ++i) in main() 74 win.set_image(crops[i]); in main()
|
H A D | dnn_imagenet_ex.cpp | 86 dlib::array<matrix<rgb_pixel>>& crops, in randomly_crop_images() argument 98 extract_image_chips(img, dets, crops); in randomly_crop_images() 100 for (auto&& img : crops) in randomly_crop_images()
|
H A D | dnn_face_recognition_ex.cpp | 212 std::vector<matrix<rgb_pixel>> crops; in jitter_image() local 214 crops.push_back(jitter_image(img,rnd)); in jitter_image() 216 return crops; in jitter_image()
|
/dports/science/dlib-cpp/dlib-19.22/examples/ |
H A D | random_cropper_ex.cpp | 64 std::vector<matrix<rgb_pixel>> crops; in main() local 67 cropper(1000, images, boxes, crops, crop_boxes); in main() 71 for (size_t i = 0; i < crops.size(); ++i) in main() 74 win.set_image(crops[i]); in main()
|
H A D | dnn_imagenet_ex.cpp | 86 dlib::array<matrix<rgb_pixel>>& crops, in randomly_crop_images() argument 98 extract_image_chips(img, dets, crops); in randomly_crop_images() 100 for (auto&& img : crops) in randomly_crop_images()
|
H A D | dnn_face_recognition_ex.cpp | 212 std::vector<matrix<rgb_pixel>> crops; in jitter_image() local 214 crops.push_back(jitter_image(img,rnd)); in jitter_image() 216 return crops; in jitter_image()
|
/dports/science/py-dlib/dlib-19.22/dlib/image_transforms/ |
H A D | random_cropper.h | 114 array_type& crops, in operator() 119 crops.clear(); in operator() 121 append(num_crops, images, rects, crops, crop_rects); in operator() 131 array_type& crops, in append() argument 136 DLIB_CASSERT(crops.size() == crop_rects.size()); in append() 137 auto original_size = crops.size(); in append() 138 crops.resize(crops.size()+num_crops); in append() 141 (*this)(images, rects, crops[i], crop_rects[i]); in append()
|
H A D | random_cropper_abstract.h | 209 array_type& crops, 239 array_type& crops,
|
/dports/science/dlib-cpp/dlib-19.22/dlib/image_transforms/ |
H A D | random_cropper.h | 114 array_type& crops, in operator() 119 crops.clear(); in operator() 121 append(num_crops, images, rects, crops, crop_rects); in operator() 131 array_type& crops, in append() argument 136 DLIB_CASSERT(crops.size() == crop_rects.size()); in append() 137 auto original_size = crops.size(); in append() 138 crops.resize(crops.size()+num_crops); in append() 141 (*this)(images, rects, crops[i], crop_rects[i]); in append()
|
H A D | random_cropper_abstract.h | 209 array_type& crops, 239 array_type& crops,
|
/dports/misc/mnn/MNN-1.2.0/test/op/ |
H A D | BatchToSpaceNDTest.cpp | 33 auto crops = _Const(cropsdata, {2, 2}, NCHW, halide_type_of<int>()); in run() local 48 auto tmp = _BatchToSpaceND(input, block_shape, crops); in run() 53 auto _tmp = Variable::create(Expr::create(std::move(op), {input, block_shape, crops})); in run()
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/media/i2c/ccs/ |
H A D | ccs-core.c | 2029 struct v4l2_rect **crops, in ccs_get_crop_compose() argument 2036 if (crops) in ccs_get_crop_compose() 2038 crops[i] = &ssd->crop[i]; in ccs_get_crop_compose() 2042 if (crops) { in ccs_get_crop_compose() 2080 *crops[CCS_PAD_SRC] = *comp; in ccs_propagate() 2265 crops[CCS_PAD_SINK]->width in ccs_set_compose_binner() 2268 crops[CCS_PAD_SINK]->height in ccs_set_compose_binner() 2355 crops[CCS_PAD_SINK]->width in ccs_set_compose_scaler() 2393 (crops[CCS_PAD_SINK]->width in ccs_set_compose_scaler() 2520 *crops[sel->pad] = sel->r; in ccs_set_crop() [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/media/i2c/ccs/ |
H A D | ccs-core.c | 2029 struct v4l2_rect **crops, in ccs_get_crop_compose() argument 2036 if (crops) in ccs_get_crop_compose() 2038 crops[i] = &ssd->crop[i]; in ccs_get_crop_compose() 2042 if (crops) { in ccs_get_crop_compose() 2080 *crops[CCS_PAD_SRC] = *comp; in ccs_propagate() 2265 crops[CCS_PAD_SINK]->width in ccs_set_compose_binner() 2268 crops[CCS_PAD_SINK]->height in ccs_set_compose_binner() 2355 crops[CCS_PAD_SINK]->width in ccs_set_compose_scaler() 2393 (crops[CCS_PAD_SINK]->width in ccs_set_compose_scaler() 2520 *crops[sel->pad] = sel->r; in ccs_set_crop() [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/media/i2c/ccs/ |
H A D | ccs-core.c | 2029 struct v4l2_rect **crops, in ccs_get_crop_compose() argument 2036 if (crops) in ccs_get_crop_compose() 2038 crops[i] = &ssd->crop[i]; in ccs_get_crop_compose() 2042 if (crops) { in ccs_get_crop_compose() 2080 *crops[CCS_PAD_SRC] = *comp; in ccs_propagate() 2265 crops[CCS_PAD_SINK]->width in ccs_set_compose_binner() 2268 crops[CCS_PAD_SINK]->height in ccs_set_compose_binner() 2355 crops[CCS_PAD_SINK]->width in ccs_set_compose_scaler() 2393 (crops[CCS_PAD_SINK]->width in ccs_set_compose_scaler() 2520 *crops[sel->pad] = sel->r; in ccs_set_crop() [all …]
|
/dports/misc/py-gluoncv/gluon-cv-0.9.0/gluoncv/data/transforms/ |
H A D | image.py | 401 crops = nd.stack(*[center, tl, bl, tr, br], axis=0) 402 crops = nd.concat(*[crops, nd.flip(crops, axis=2)], dim=0) 403 return crops
|
/dports/graphics/epix/epix-1.2.19/ |
H A D | pen_arrow.cc | 81 if (M.crops(m_shaft.head())) in crop_to() 85 if (M.crops(m_shaft.head()) || M.crops(m_shaft.tail())) in crop_to()
|
/dports/www/e107/e107/e107_handlers/phpthumb/ |
H A D | README | 5 resize by width, height, and percentage, create custom crops, 6 or square crops from the center, and rotate the image. You can
|
/dports/misc/mnn/MNN-1.2.0/pymnn/pip_package/MNN/expr/ |
H A D | __init__.py | 245 def batch_to_space_nd(input, block_shape, crops): argument 248 crops = _to_var(crops, to_float=False) 253 if not isinstance(crops, Var): 257 if block_shape.dtype != _F.int or crops.dtype != _F.int: 261 if len(crops.shape) != 2 or crops.shape[-1] != 2 or crops.shape[0] != block_shape.shape[0]: 263 return _F.batch_to_space_nd(input, block_shape, crops)
|