/dports/graphics/hugin/hugin-2020.0.0/src/hugin1/hugin/ |
H A D | PreviewGuideTool.cpp | 81 glVertex2f(roi.left(), roi.top()); in DrawDiagonal() 82 glVertex2f(roi.right(), roi.bottom()); in DrawDiagonal() 83 glVertex2f(roi.left(), roi.bottom()); in DrawDiagonal() 84 glVertex2f(roi.right(), roi.top()); in DrawDiagonal() 85 glVertex2f(roi.left(), roi.top()+roi.height()/2.0); in DrawDiagonal() 86 glVertex2f(roi.right(), roi.top()+roi.height()/2.0); in DrawDiagonal() 87 glVertex2f(roi.left()+roi.width()/2.0, roi.top()); in DrawDiagonal() 88 glVertex2f(roi.left()+roi.width()/2.0, roi.bottom()); in DrawDiagonal() 125 glVertex2f(roi.left(), roi.top()); in DrawDiagonalMethod() 134 glVertex2f(roi.left(), roi.bottom()); in DrawDiagonalMethod() [all …]
|
H A D | PreviewCropTool.cpp | 139 if (roi.left()<roi.right()) in MouseMoveEvent() 143 roi.setUpperLeft(vigra::Point2D(roi.left() - left_d, roi.top())); in MouseMoveEvent() 148 if (roi.top()<roi.bottom()) in MouseMoveEvent() 152 roi.setUpperLeft(vigra::Point2D(roi.left(), roi.top() - top_d)); in MouseMoveEvent() 157 if (roi.left()<roi.right()) in MouseMoveEvent() 161 roi.setLowerRight(vigra::Point2D(roi.right() - right_d, in MouseMoveEvent() 168 if (roi.top()<roi.bottom()) in MouseMoveEvent() 171 roi.setLowerRight(vigra::Point2D(roi.right(), in MouseMoveEvent() 176 if((roi.top()<roi.bottom())&&(roi.left()<roi.right())) in MouseMoveEvent() 178 opts.setROI(roi); in MouseMoveEvent() [all …]
|
/dports/graphics/photoflow/PhotoFlow-8472024f/src/base/ |
H A D | roi.cc | 51 if(roi == NULL) return roi; in rp_roi_new() 58 roi->buf = NULL; in rp_roi_new() 59 roi->data = NULL; in rp_roi_new() 86 roi->data[ch] = roi->data[ch] - top; in rp_roi_new() 108 return roi; in rp_roi_new() 120 if(roi == NULL) return roi; in rp_roi_new_from_data() 127 roi->buf = NULL; in rp_roi_new_from_data() 159 roi->data[ch] = roi->data[ch] - top; in rp_roi_new_from_data() 200 return roi; in rp_roi_new_from_data() 211 if( roi->buf ) pf_free_align( roi->buf ); in rp_roi_free() [all …]
|
/dports/graphics/openimageio/oiio-Release-2.2.16.0/src/libOpenImageIO/ |
H A D | imagebufalgo_pixelmath.cpp | 31 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in min_impl() argument 36 for (int c = roi.chbegin; c < roi.chend; ++c) in min_impl() 48 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in min_impl() argument 52 for (int c = roi.chbegin; c < roi.chend; ++c) in min_impl() 81 roi.chbegin = roi.chend; in min() 133 for (int c = roi.chbegin; c < roi.chend; ++c) in max_impl() 178 roi.chbegin = roi.chend; in max() 332 roi.chbegin = roi.chend; in absdiff() 942 for (int c = roi.chbegin; c < roi.chend; ++c) in contrast_remap_() 1057 roi.chend = std::min(roi.chend, channels); in color_map_() [all …]
|
H A D | imagebufalgo_copy.cpp | 87 for (int z = roi.zbegin; z < roi.zend; ++z) { in deep_paste_() 139 parallel_image(roi, nthreads, [&](ROI roi) { in copy_() argument 157 parallel_image(roi, nthreads, [&](ROI roi) { in copy_deep() argument 194 roi.chend = std::min(roi.chend, src.nchannels()); in copy() 198 roi = src.roi(); in copy() 222 roi.nchannels(), roi.width(), roi.height(), roi.depth(), in copy() 223 src.pixeladdr(roi.xbegin, roi.ybegin, roi.zbegin, roi.chbegin), in copy() 226 dst.pixeladdr(roi.xbegin, roi.ybegin, roi.zbegin, roi.chbegin), in copy() 276 roi.nchannels(), roi.width(), roi.height(), roi.depth(), in crop() 277 src.pixeladdr(roi.xbegin, roi.ybegin, roi.zbegin, roi.chbegin), in crop() [all …]
|
H A D | imagebufalgo_compare.cpp | 139 ROI subroi(roi.xbegin, roi.xend, ybegin, yend, roi.zbegin, in computePixelStats_() 140 roi.zend, roi.chbegin, roi.chend); in computePixelStats_() 161 ROI subroi(roi.xbegin, roi.xend, ybegin, yend, roi.zbegin, in computePixelStats_() 162 roi.zend, roi.chbegin, roi.chend); in computePixelStats_() 731 roi = roi_intersection(roi, src.roi()); in nonzero_region() 740 for (; roi.ybegin < roi.yend; --roi.yend) { in nonzero_region() 747 for (; roi.ybegin < roi.yend; ++roi.ybegin) { in nonzero_region() 754 for (; roi.xbegin < roi.xend; --roi.xend) { in nonzero_region() 761 for (; roi.xbegin < roi.xend; ++roi.xbegin) { in nonzero_region() 769 for (; roi.zbegin < roi.zend; --roi.zend) { in nonzero_region() [all …]
|
H A D | imagebufalgo_addsub.cpp | 30 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in add_impl() argument 35 for (int c = roi.chbegin; c < roi.chend; ++c) in add_impl() 47 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in add_impl() argument 51 for (int c = roi.chbegin; c < roi.chend; ++c) in add_impl() 64 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in add_impl_deep() argument 71 for (int c = roi.chbegin; c < roi.chend; ++c) { in add_impl_deep() 95 roi.chend = std::min(roi.chend, std::min(A.nchannels(), B.nchannels())); in add() 106 roi.chbegin = roi.chend; in add() 159 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in sub_impl() argument 164 for (int c = roi.chbegin; c < roi.chend; ++c) in sub_impl() [all …]
|
H A D | imagebufalgo_mad.cpp | 26 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in mad_impl() argument 33 && A.contains_roi(roi) && B.contains_roi(roi) && C.contains_roi(roi) in mad_impl() 34 && roi.chbegin == 0 && roi.chend == R.nchannels() in mad_impl() 43 for (int z = roi.zbegin; z < roi.zend; ++z) in mad_impl() 44 for (int y = roi.ybegin; y < roi.yend; ++y) { in mad_impl() 89 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in mad_impl_ici() argument 94 for (int ch = roi.chbegin; ch < roi.chend; ++ch) in mad_impl_ici() 108 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in mad_impl_icc() argument 112 for (int ch = roi.chbegin; ch < roi.chend; ++ch) in mad_impl_icc() 125 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in mad_impl_iic() argument [all …]
|
H A D | imagebufalgo_draw.cpp | 44 for (int i = roi.chbegin; i < roi.chend; ++i) in fill_const_() 60 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in fill_tb_() argument 64 for (int c = roi.chbegin; c < roi.chend; ++c) in fill_tb_() 78 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in fill_corners_() argument 84 for (int c = roi.chbegin; c < roi.chend; ++c) in fill_corners_() 214 for (int c = roi.chbegin; c < roi.chend; ++c) in render_point_() 229 if (x < roi.xbegin || x >= roi.xend || y < roi.ybegin || y >= roi.yend) in render_point() 320 for (int c = roi.chbegin; c < roi.chend; ++c) in operator ()() 327 ROI roi; member 420 roi = roi_intersection(roi, in render_box() [all …]
|
H A D | imagebufalgo_muldiv.cpp | 31 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in mul_impl() argument 32 ImageBuf::Iterator<Rtype> r(R, roi); in mul_impl() 36 for (int c = roi.chbegin; c < roi.chend; ++c) in mul_impl() 48 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in mul_impl() argument 51 for (int c = roi.chbegin; c < roi.chend; ++c) in mul_impl() 63 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in mul_impl_deep() argument 71 for (int c = roi.chbegin; c < roi.chend; ++c) { in mul_impl_deep() 105 if (!IBAprep(roi, &dst, &A, in mul() 143 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in div_impl() argument 148 for (int c = roi.chbegin; c < roi.chend; ++c) { in div_impl() [all …]
|
H A D | imagebufalgo.cpp | 135 roi = A->roi(); in IBAprep() 138 roi = roi_union(roi, B->roi()); in IBAprep() 142 roi = roi_union(roi, C->roi()); in IBAprep() 257 roi.chend = std::min(roi.chend, minchans); in IBAprep() 258 roi.chend = std::min(roi.chend, spec.nchannels); in IBAprep() 273 roi.chend = std::min(roi.chend, minchans); in IBAprep() 274 roi.chend = std::min(roi.chend, maxchans); in IBAprep() 359 parallel_image(roi, nthreads, [&](ROI roi) { in convolve_() argument 836 && dst.roi() == src.roi() in hfft_() 846 for (int z = roi.zbegin; z < roi.zend; ++z) { in hfft_() [all …]
|
/dports/graphics/py-openimageio/oiio-Release-2.2.16.0/src/libOpenImageIO/ |
H A D | imagebufalgo_pixelmath.cpp | 31 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in min_impl() argument 36 for (int c = roi.chbegin; c < roi.chend; ++c) in min_impl() 48 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in min_impl() argument 52 for (int c = roi.chbegin; c < roi.chend; ++c) in min_impl() 81 roi.chbegin = roi.chend; in min() 133 for (int c = roi.chbegin; c < roi.chend; ++c) in max_impl() 178 roi.chbegin = roi.chend; in max() 332 roi.chbegin = roi.chend; in absdiff() 942 for (int c = roi.chbegin; c < roi.chend; ++c) in contrast_remap_() 1057 roi.chend = std::min(roi.chend, channels); in color_map_() [all …]
|
H A D | imagebufalgo_copy.cpp | 87 for (int z = roi.zbegin; z < roi.zend; ++z) { in deep_paste_() 139 parallel_image(roi, nthreads, [&](ROI roi) { in copy_() argument 157 parallel_image(roi, nthreads, [&](ROI roi) { in copy_deep() argument 194 roi.chend = std::min(roi.chend, src.nchannels()); in copy() 198 roi = src.roi(); in copy() 222 roi.nchannels(), roi.width(), roi.height(), roi.depth(), in copy() 223 src.pixeladdr(roi.xbegin, roi.ybegin, roi.zbegin, roi.chbegin), in copy() 226 dst.pixeladdr(roi.xbegin, roi.ybegin, roi.zbegin, roi.chbegin), in copy() 276 roi.nchannels(), roi.width(), roi.height(), roi.depth(), in crop() 277 src.pixeladdr(roi.xbegin, roi.ybegin, roi.zbegin, roi.chbegin), in crop() [all …]
|
H A D | imagebufalgo_compare.cpp | 139 ROI subroi(roi.xbegin, roi.xend, ybegin, yend, roi.zbegin, in computePixelStats_() 140 roi.zend, roi.chbegin, roi.chend); in computePixelStats_() 161 ROI subroi(roi.xbegin, roi.xend, ybegin, yend, roi.zbegin, in computePixelStats_() 162 roi.zend, roi.chbegin, roi.chend); in computePixelStats_() 731 roi = roi_intersection(roi, src.roi()); in nonzero_region() 740 for (; roi.ybegin < roi.yend; --roi.yend) { in nonzero_region() 747 for (; roi.ybegin < roi.yend; ++roi.ybegin) { in nonzero_region() 754 for (; roi.xbegin < roi.xend; --roi.xend) { in nonzero_region() 761 for (; roi.xbegin < roi.xend; ++roi.xbegin) { in nonzero_region() 769 for (; roi.zbegin < roi.zend; --roi.zend) { in nonzero_region() [all …]
|
H A D | imagebufalgo_addsub.cpp | 30 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in add_impl() argument 35 for (int c = roi.chbegin; c < roi.chend; ++c) in add_impl() 47 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in add_impl() argument 51 for (int c = roi.chbegin; c < roi.chend; ++c) in add_impl() 64 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in add_impl_deep() argument 71 for (int c = roi.chbegin; c < roi.chend; ++c) { in add_impl_deep() 95 roi.chend = std::min(roi.chend, std::min(A.nchannels(), B.nchannels())); in add() 106 roi.chbegin = roi.chend; in add() 159 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in sub_impl() argument 164 for (int c = roi.chbegin; c < roi.chend; ++c) in sub_impl() [all …]
|
H A D | imagebufalgo_mad.cpp | 26 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in mad_impl() argument 33 && A.contains_roi(roi) && B.contains_roi(roi) && C.contains_roi(roi) in mad_impl() 34 && roi.chbegin == 0 && roi.chend == R.nchannels() in mad_impl() 43 for (int z = roi.zbegin; z < roi.zend; ++z) in mad_impl() 44 for (int y = roi.ybegin; y < roi.yend; ++y) { in mad_impl() 89 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in mad_impl_ici() argument 94 for (int ch = roi.chbegin; ch < roi.chend; ++ch) in mad_impl_ici() 108 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in mad_impl_icc() argument 112 for (int ch = roi.chbegin; ch < roi.chend; ++ch) in mad_impl_icc() 125 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in mad_impl_iic() argument [all …]
|
H A D | imagebufalgo_draw.cpp | 44 for (int i = roi.chbegin; i < roi.chend; ++i) in fill_const_() 60 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in fill_tb_() argument 64 for (int c = roi.chbegin; c < roi.chend; ++c) in fill_tb_() 78 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in fill_corners_() argument 84 for (int c = roi.chbegin; c < roi.chend; ++c) in fill_corners_() 214 for (int c = roi.chbegin; c < roi.chend; ++c) in render_point_() 229 if (x < roi.xbegin || x >= roi.xend || y < roi.ybegin || y >= roi.yend) in render_point() 320 for (int c = roi.chbegin; c < roi.chend; ++c) in operator ()() 327 ROI roi; member 420 roi = roi_intersection(roi, in render_box() [all …]
|
H A D | imagebufalgo_muldiv.cpp | 31 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in mul_impl() argument 32 ImageBuf::Iterator<Rtype> r(R, roi); in mul_impl() 36 for (int c = roi.chbegin; c < roi.chend; ++c) in mul_impl() 48 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in mul_impl() argument 51 for (int c = roi.chbegin; c < roi.chend; ++c) in mul_impl() 63 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in mul_impl_deep() argument 71 for (int c = roi.chbegin; c < roi.chend; ++c) { in mul_impl_deep() 105 if (!IBAprep(roi, &dst, &A, in mul() 143 ImageBufAlgo::parallel_image(roi, nthreads, [&](ROI roi) { in div_impl() argument 148 for (int c = roi.chbegin; c < roi.chend; ++c) { in div_impl() [all …]
|
H A D | imagebufalgo.cpp | 135 roi = A->roi(); in IBAprep() 138 roi = roi_union(roi, B->roi()); in IBAprep() 142 roi = roi_union(roi, C->roi()); in IBAprep() 257 roi.chend = std::min(roi.chend, minchans); in IBAprep() 258 roi.chend = std::min(roi.chend, spec.nchannels); in IBAprep() 273 roi.chend = std::min(roi.chend, minchans); in IBAprep() 274 roi.chend = std::min(roi.chend, maxchans); in IBAprep() 359 parallel_image(roi, nthreads, [&](ROI roi) { in convolve_() argument 836 && dst.roi() == src.roi() in hfft_() 846 for (int z = roi.zbegin; z < roi.zend; ++z) { in hfft_() [all …]
|
/dports/multimedia/chilitags/chilitags-2.0.0-169-g0d9854f/src/ |
H A D | GrowRoi.cpp | 30 roi.x -= xGrowth; in growRoi() 31 roi.y -= yGrowth; in growRoi() 32 roi.width += 2*xGrowth; in growRoi() 33 roi.height += 2*yGrowth; in growRoi() 38 roi.x = std::max(roi.x, 0); in growRoi() 39 roi.y = std::max(roi.y, 0); in growRoi() 40 roi.width -= roi.x - previousRoiX; in growRoi() 41 roi.height -= roi.y - previousRoiY; in growRoi() 42 roi.width = cv::min(roi.x+roi.width, inputImage.cols)-roi.x; in growRoi() 43 roi.height = cv::min(roi.y+roi.height, inputImage.rows)-roi.y; in growRoi() [all …]
|
/dports/graphics/ImageMagick6-nox11/ImageMagick-6.9.12-34/magick/ |
H A D | pixel.c | 432 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportCharPixel() 449 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportCharPixel() 467 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportCharPixel() 485 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportCharPixel() 552 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportCharPixel() 765 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportDoublePixel() 977 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportFloatPixel() 1190 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportIntegerPixel() 1403 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportLongPixel() 1614 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportQuantumPixel() [all …]
|
/dports/graphics/ImageMagick6/ImageMagick-6.9.12-34/magick/ |
H A D | pixel.c | 432 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportCharPixel() 449 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportCharPixel() 467 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportCharPixel() 485 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportCharPixel() 552 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportCharPixel() 765 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportDoublePixel() 977 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportFloatPixel() 1190 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportIntegerPixel() 1403 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportLongPixel() 1614 p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception); in ExportQuantumPixel() [all …]
|
/dports/graphics/openimageio/oiio-Release-2.2.16.0/src/include/OpenImageIO/ |
H A D | imagebufalgo.h | 224 ROI roi={}, int nthreads=0); 226 ROI roi={}, int nthreads=0); 2064 ROI roi={}, int nthreads=0); 2194 int nc (roi.defined() ? roi.nchannels() : dst.nchannels()); 2199 int nc (roi.defined() ? roi.nchannels() : dst.nchannels()); 2205 int nc (roi.defined() ? roi.nchannels() : dst.nchannels()); 2214 int nc (roi.defined() ? roi.nchannels() : dst.nchannels()); 2261 roi, nthreads); 2282 roi, nthreads); 2287 int nc = roi.defined() ? std::min(roi.chend,src.nchannels()) : src.nchannels(); [all …]
|
/dports/graphics/py-openimageio/oiio-Release-2.2.16.0/src/include/OpenImageIO/ |
H A D | imagebufalgo.h | 224 ROI roi={}, int nthreads=0); 226 ROI roi={}, int nthreads=0); 2064 ROI roi={}, int nthreads=0); 2194 int nc (roi.defined() ? roi.nchannels() : dst.nchannels()); 2199 int nc (roi.defined() ? roi.nchannels() : dst.nchannels()); 2205 int nc (roi.defined() ? roi.nchannels() : dst.nchannels()); 2214 int nc (roi.defined() ? roi.nchannels() : dst.nchannels()); 2261 roi, nthreads); 2282 roi, nthreads); 2287 int nc = roi.defined() ? std::min(roi.chend,src.nchannels()) : src.nchannels(); [all …]
|
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/tracking/samples/ |
H A D | tutorial_customizing_cn_tracker.cpp | 28 Rect roi; in main() local 57 if(roi.width==0 || roi.height==0) in main() 61 tracker->init(frame,roi); in main() 92 Rect region=roi; in sobelExtractor() 96 if(roi.x<0){region.x=0;region.width+=roi.x;} in sobelExtractor() 97 if(roi.y<0){region.y=0;region.height+=roi.y;} in sobelExtractor() 98 if(roi.x+roi.width>img.cols)region.width=img.cols-roi.x; in sobelExtractor() 99 if(roi.y+roi.height>img.rows)region.height=img.rows-roi.y; in sobelExtractor() 110 addTop=region.y-roi.y; in sobelExtractor() 111 addBottom=(roi.height+roi.y>img.rows?roi.height+roi.y-img.rows:0); in sobelExtractor() [all …]
|