ySalaun / LineSfM

131 stars 46 forks source link

runtime error with opencv3.4 #2

Closed zebrajack closed 6 years ago

zebrajack commented 6 years ago

DETECT LINES AND COMPUTE DESCRIPTORS OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in resize, file /root/opencv-3.4.0/modules/imgproc/src/resize.cpp, line 4044 terminate called after throwing an instance of 'cv::Exception' what(): /root/opencv-3.4.0/modules/imgproc/src/resize.cpp:4044: error: (-215) ssize.width > 0 && ssize.height > 0 in function resize

I have no idea what should I do according to the error.

ySalaun commented 6 years ago

Hi,

With this error it is difficult for me to help you. However I can give you some hints to help you debug:

Best,

Yohann

zebrajack commented 6 years ago

build it in "build" folder and maintained your folder structure. image

image

ySalaun commented 6 years ago

Hi,

I think the issue is that it looks for images inside home/yohann/Images folder You should change images.txt file and replace /home/yohann by the correct path.

Best,

Yohann

zebrajack commented 6 years ago

Oh, I didn't get notice. thks. BTW, I have changed it and relocate to the TEST_IMAGES Folder. and with k.txt file in it. and the detection and matching has been run in advance. image

ySalaun commented 6 years ago

The message you sent first has been edited and I'm not sure to understand what you wrote. Do you still have an issue ?

zebrajack commented 6 years ago

Yeah. I mean I didn't get notice the path is absolute path. so I changed it, and now it works for most command. but only the Calibration command doesn't work,I thought it cause by the k.txt , but find it has been read already. but still pop up the core dumped error. I have no idea what happened.

ySalaun commented 6 years ago

Have you used openMVG to detect and match points ? You need to detect and match points one way or another before using the calibration command, I won't be able to answer you before next Monday, Hope you it will work,

Best,

Yohann

zebrajack commented 6 years ago

Oh, I thought the calibaration should use the line detection and matching which has already runned in advanced. since I intend to use the indoor images which lack feature points. But anyway, let me try the OpenMVG later. and let you know the results. thanks for your quick response.

Regards! Cheng

ySalaun commented 6 years ago

Yes, this method still need a few points in order to compute the relative translation. If you want to use line only, you should use trifocal methods.