gishi523 / semantic-stixels

An implementation of semantic stixel computation
21 stars 6 forks source link

Window size of output window is too big #3

Closed sam6134 closed 5 years ago

sam6134 commented 5 years ago

The code is compiling fine on my system but the only problem is the window size of the output is too big thus all the four images are not visible on the whole screen. Also the window is not resizing I tried moving the cursor but it does not resize. Could you help me with this issue?

gishi523 commented 5 years ago

Hi, @sam6134

To resize window, you can adjust drawSize here.

For example, this is half size of current setting.

const cv::Size drawSize = cv::Size(disparity.cols / 2, disparity.rows / 2);

Or, using cv::namedWindow and cv::WINDOW_NORMAL enables resizing window by cursor.

    cv::Mat legend;
    drawLegend(legend, classes, colors);

+   cv::namedWindow("Semantic Stixels Demo", cv::WINDOW_NORMAL);
+
    for (int frameno = 0;; frameno++)
    {
        cap1 >> I1;

Regards, Gishi

sam6134 commented 5 years ago

Thanks a lot that works. Regards Samarth