Title: calculating histogramm · Issue #6 · codeboost/opencv-node · GitHub
Open Graph Title: calculating histogramm · Issue #6 · codeboost/opencv-node
X Title: calculating histogramm · Issue #6 · codeboost/opencv-node
Description: My next try was to add a @Manual declaration to the legacy cv.mGet function, which is an INLINE declaration in opencv-src/modules/core/include/opencv2/core/types_c.h as: CV_INLINE double cvmGet( const CvMat* mat, int row, int col ) { int...
Open Graph Description: My next try was to add a @Manual declaration to the legacy cv.mGet function, which is an INLINE declaration in opencv-src/modules/core/include/opencv2/core/types_c.h as: CV_INLINE double cvmGet( co...
X Description: My next try was to add a @Manual declaration to the legacy cv.mGet function, which is an INLINE declaration in opencv-src/modules/core/include/opencv2/core/types_c.h as: CV_INLINE double cvmGet( co...
Opengraph URL: https://github.com/codeboost/opencv-node/issues/6
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"calculating histogramm","articleBody":"My next try was to add a @manual declaration to the legacy cv.mGet function, which is an INLINE declaration in opencv-src/modules/core/include/opencv2/core/types_c.h as:\n\nCV_INLINE double cvmGet( const CvMat\\* mat, int row, int col )\n{\n int type;\n\n type = CV_MAT_TYPE(mat->type);\n assert( (unsigned)row \u003c (unsigned)mat->rows &&\n (unsigned)col \u003c (unsigned)mat->cols );\n\n if( type == CV_32FC1 )\n return ((float_)(mat->data.ptr + (size_t)mat->step_row))[col];\n else\n {\n assert( type == CV_64FC1 );\n return ((double_)(mat->data.ptr + (size_t)mat->step_row))[col];\n }\n}\n\nmy try on the bea declaration to expose the method in opencv_manual.cpp:\n\nv8::Handlev8::Value JOpenCV::mGet(const v8::Arguments& args) {\n METHOD_BEGIN(1);\n //float mGet(const Mat\\* mat, int row, int col)\n //TODO: Enter code here\n cv::Mat\\* mat = bea::Convertcv::Mat*::FromJS(args[0], 0);\n int row = bea::Convert\u003cint>::FromJS(args[1], 1);\n int col = bea::Convert\u003cint>::FromJS(args[2], 2);\n THROW_IF_NOT(row > 0, \"Invalid row value\");\n THROW_IF_NOT(col > 0, \"Invalid col value\");\n\n // float or double?\n\n float\\* ptr = (float_)(mat->data + (size_t)mat->step_row);\n // i get negative values too -> obviously wrong pointer/bad value for color...\n float result = ptr[col];\n return bea::Convert\u003cfloat>::ToJS(result);\n METHOD_END();\n}\n\n(as You can see i'm still no good at all in CPP / v8)\n\nWhat values use this v8 port for storing colors? Floats, doubles, uchars?\n","author":{"url":"https://github.com/bitbay","@type":"Person","name":"bitbay"},"datePublished":"2012-10-21T09:19:13Z","url":"https://github.com/codeboost/opencv-node/issues/6"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:926a6576-bafc-4b51-feab-793754157995 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5DA:3F4DFE:5816E:68CAA:6B0A20F2 |
| html-safe-nonce | 2566c92e94330120d15a40bdb15d1698a5a69a24b564812b6977b2b7b86ec8df |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNURBOjNGNERGRTo1ODE2RTo2OENBQTo2QjBBMjBGMiIsInZpc2l0b3JfaWQiOiIyODQyOTgyNjIwNDU4NTI0OTE0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3a4ff92289995932e14938eecf593de9184c9f193cfc7badac9c55d941c606a3 |
| hovercard-subject-tag | issue:7746253 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/codeboost/opencv-node/6/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d1faf1d493589d052729a1ecb31503e82bc901412879ae6b651b72c6f641ca04/codeboost/opencv-node/issues/6 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d1faf1d493589d052729a1ecb31503e82bc901412879ae6b651b72c6f641ca04/codeboost/opencv-node/issues/6 |
| og:image:alt | My next try was to add a @Manual declaration to the legacy cv.mGet function, which is an INLINE declaration in opencv-src/modules/core/include/opencv2/core/types_c.h as: CV_INLINE double cvmGet( co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bitbay |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7c47183a73008933468557b28d2500e2ea7619094b9fe68a81910d76811eeb3c |
| turbo-cache-control | no-preview |
| go-import | github.com/codeboost/opencv-node git https://github.com/codeboost/opencv-node.git |
| octolytics-dimension-user_id | 338601 |
| octolytics-dimension-user_login | codeboost |
| octolytics-dimension-repository_id | 4782560 |
| octolytics-dimension-repository_nwo | codeboost/opencv-node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 4782560 |
| octolytics-dimension-repository_network_root_nwo | codeboost/opencv-node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 206ca5e2e4c7feca284ad1771fa08530fd32785c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width