Ask Your Question

fabianc20's profile - activity

2020-03-13 21:51:11 -0600 received badge  Self-Learner (source)
2020-03-13 21:36:16 -0600 received badge  Self-Learner (source)
2020-03-13 18:46:25 -0600 marked best answer is there a way to read an image directly from a directory (not passing arguments)?

HI all I have been trying ro read an image: see theses 2 lines. But I just don get it. If I use arguments then I can, but, what I need is to get it directly from the folder. Please your adivise Thanks.

#include <opencv2/core.hpp>
using namespace cv;

#include <iostream>
using namespace std;

int main()
{
    //Mat left = imread("C:\\Users\\Fcastro\\source\\repos\\pose\\cbimages\\0_degrees.pgm");
    Mat left = imread("C:/Users/Fcastro/source/repos/pose/cbimages/0_degrees.pgm");
    imshow("Left Image View", left);
    getchar();
}
2020-03-13 18:45:50 -0600 answered a question is there a way to read an image directly from a directory (not passing arguments)?

Wierd and creepy, all I did, change getchar() for waitKey() and it worrks!. So main goes this way... int main() {

2020-03-11 18:45:26 -0600 asked a question is there a way to read an image directly from a directory (not passing arguments)?

is there a way to read an image directly from a directory (not passing arguments)? HI all I have been trying ro read an

2019-11-04 22:20:51 -0600 asked a question real time pose etimation Unspecified error

real time pose etimation Unspecified error Dear Opencv'rs I am running the "model registration" program of the real_tim

2019-11-04 22:20:43 -0600 asked a question real time pose etimation Unspecified error

real time pose etimation Unspecified error Dear Opencv'rs I am running the "model registration" program of the real_tim

2019-11-02 18:18:18 -0600 commented answer real_time_pose_estimation VS-c++ compiling issues

Dear mvuori, Thanks I had already tried that but with the scope of the main source. So I did this -for the whole project

2019-11-02 18:17:59 -0600 marked best answer real_time_pose_estimation VS-c++ compiling issues

Dear Opencv'rs

I have been able to compile and execute every sample I have touched from the opencv 4.1.1 samples folder, including camera_calibration.

Now, with real_time_pose_etimation I have been facing a sturbon compiling issue -unsuccesfully troubleshooted it for days- so I must kindly ask for your help.

Opencv 4.1.1 Windows 10 Pro, have tried building both x86 and x64 VS 2019, ver 16.3.5 Code: C:\opencv\sources\samples\cpp\tutorial_code\calib3d\real_time_pose_estimation\src

What I usually do -not a cmaker user- is I CTRL+V into a new project source file the main cpp content and copy all the reamining .cpp and .h files to the include/opencv2.

In the case of real_time_pose_estimation I brought a copy of main_detection.cpp as my project main source. Everything else I've dumped into my local "..include/opencv2". I have copied the data folder to my project forlder. This is the way you -I succesfully have- build opencv modules (apps) in VS-c++.

All my include lines seem to be okay, as well as the access to files (as per the path environment var and project configurations require).

When I try to compile, I am getting 36 warnings -27 errors- most of which refer to type operator overflowing after regular math operations. There are many cpp libraries throwing the warnings, but just one line -which I believe and hoped- from the main_detection.cpp line 351 (in my VS editor)

int startX = (int)((widthSave - frame_vis.cols) / 2.0);

The warning(s) I am getting

Warning C26451 Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2)

I have looked for it in all available forums, which led me to try "Casting" in varies ways (one by one, and all possible combinations) the 3 operands in that line to make sure they are 8 byte values. I can not get out of this hole!.. sometimes I can bypass this line, particularly when I used

int startX = (int)(( intptr_t(widthSave) - intptr_t(frame_vis.cols)) / intptr_t(2.0));

then I get 'just' 35 Warnings, meaning the other .cpp libraries 'involved', keep comming back with the same

Warning C26451: Arithmetic overflow...

Thanks for your feedback

2019-11-02 18:17:59 -0600 received badge  Scholar (source)
2019-11-02 17:33:59 -0600 received badge  Enthusiast
2019-11-01 22:19:44 -0600 asked a question real_time_pose_estimation VS-c++ compiling issues

real_time_pose_estimation VS-c++ compiling issues Dear Opencv'rs I have been able to compile and execute every sample I

2019-10-26 08:32:24 -0600 received badge  Teacher (source)
2019-10-26 00:49:38 -0600 received badge  Self-Learner (source)
2019-10-25 22:11:19 -0600 answered a question camera_calibration.cpp fails when pasing a file list (InputType = IMAGE_LIST)

Learned Lessons: 1.Dataset: Chessborad images, which were the ones I wanted to use, must be fully flat collected. I wa

2019-10-23 22:00:06 -0600 asked a question camera_calibration.cpp fails when pasing a file list (InputType = IMAGE_LIST)

camera_calibration.cpp fails when pasing a file list (InputType = IMAGE_LIST) Hi dear Opencv'ers I am triying to calibr

2019-10-23 21:03:18 -0600 received badge  Self-Learner (source)
2019-10-23 20:58:19 -0600 answered a question Unable to operate 2 arrays due to Assertion failed (type2 == CV_64F && (sz2.height == 1 || sz 2.height == 4)) in cv::arithm_op

The function that calls removeLitght, must past a {360,1} Step value -in this case. Use cvtColor -which is the video equ

2019-10-21 10:24:45 -0600 commented question Unable to operate 2 arrays due to Assertion failed (type2 == CV_64F && (sz2.height == 1 || sz 2.height == 4)) in cv::arithm_op

Berak version is 4.1.1, VS 2109 ver 16.3.5 I got it to work, Ultimately the function that calls removeLitght, must pa

2019-10-20 20:01:15 -0600 asked a question Identifiers switch undefined / defined with not changes on code!

Identifiers switch undefined / defined with not changes on code! identifiers switch from being properly recognized to su

2019-10-20 20:01:14 -0600 asked a question Unable to operate 2 arrays due to Assertion failed (type2 == CV_64F && (sz2.height == 1 || sz 2.height == 4)) in cv::arithm_op

Unable to operate 2 arrays due to Assertion failed (type2 == CV_64F && (sz2.height == 1 || sz 2.height == 4)) in