Ask Your Question
1

What are all the requirement for Viz module installation

asked 2018-01-29 00:59:25 -0600

PrabhakarM gravatar image

updated 2018-02-02 13:16:36 -0600

Hi

Please let me know what are all the requirement to install viz module. Please brief the procedure for the same.

How to do environment set up for viz module using opencv 3.3 iv visual studio 2015.

Thanks in advance.

Regards, Prabhakar M

edit retag flag offensive close merge delete

Comments

just now i downloaded VTK and compiling it. to enable VIZ module

sturkmen gravatar imagesturkmen ( 2018-01-29 01:57:52 -0600 )edit

@sturkmen : good question. where is it written in doc?

LBerger gravatar imageLBerger ( 2018-01-29 02:05:33 -0600 )edit
1

@LBerger i think there is no explanation about that in the documentation.

sturkmen gravatar imagesturkmen ( 2018-01-29 02:43:43 -0600 )edit

@PrabhakarM after i compiled VTK ( build/install ). when compiling OpenCV 3.4 ( latest source code ). CMake finds VTK and VIZ module is ready to be compiled

sturkmen gravatar imagesturkmen ( 2018-01-29 02:47:48 -0600 )edit

@PrabhakarM now i can compile all samples including opencv2/viz.hpp if you need i can help you step by step

sturkmen gravatar imagesturkmen ( 2018-01-29 02:58:48 -0600 )edit

@sturkmen opencv_world is off ?

LBerger gravatar imageLBerger ( 2018-01-29 03:00:49 -0600 )edit

@LBerger yes opencv_world is off. i did not try to compile with "opencv_world is on" before.

sturkmen gravatar imagesturkmen ( 2018-01-29 03:03:47 -0600 )edit

@sturkmen I am new to Opencv. Please give me step by step solution. It will be helpful. Thank you.

PrabhakarM gravatar imagePrabhakarM ( 2018-01-29 21:58:57 -0600 )edit
LBerger gravatar imageLBerger ( 2018-01-30 08:36:46 -0600 )edit

@sturkmen Hi how to build VTK for visual studio 2015 wndows 10 64bit using Cmake. Pls explain me what are the options needs to be selected while running the Cmake.

PrabhakarM gravatar imagePrabhakarM ( 2018-02-01 07:35:23 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-02-02 01:33:34 -0600

updated 2018-02-02 01:52:36 -0600

step 1. cmake

cmake screenshot

step 2. Visual Studio ( Build / Install )

Visual Studioscreenshot

you should have vtk installed like

 Directory of C:\Program Files\VTK

29.01.2018  11:25    <DIR>          .
29.01.2018  11:25    <DIR>          ..
29.01.2018  11:25    <DIR>          bin
29.01.2018  11:25    <DIR>          cmake
29.01.2018  11:24    <DIR>          include
29.01.2018  11:25    <DIR>          lib
29.01.2018  11:24    <DIR>          share

step 3. cmake ( OpenCV )

cmake finds VTK_DIR like C:/Program Files/VTK/lib/cmake/vtk-8.1

you should see viz in the list below when you press configure

  OpenCV modules:
    To be built:                 ...calib3d ccalib core dnn dnn_objdetect  ....viz ...
edit flag offensive delete link more

Comments

@sturkmen Thank you all. I have built viz module successfully. But when I am trying to run Viz launching code I am getting below error. pls support.

"VtkWin32OpenGLRenderWindow; GL version 2.1 with the GPU shared4 extension is not supported"

PrabhakarM gravatar imagePrabhakarM ( 2018-02-02 06:36:01 -0600 )edit

I too am having issues trying to build OpenCV 3.4 with VTK for the VIZ module. Everything builds, but I can't build my application due to OpenGL related errors.

replaysMike gravatar imagereplaysMike ( 2018-02-04 23:16:41 -0600 )edit

@sturkmen Please let me know why OpenGL comes here into the picture.

PrabhakarM gravatar imagePrabhakarM ( 2018-02-05 00:38:54 -0600 )edit

@replaysMike If you get any solution kindly share it

PrabhakarM gravatar imagePrabhakarM ( 2018-02-07 08:17:30 -0600 )edit

I have the same problem in running my application with opencv 3.3.1 and VTK 7.1.1, setcamera function crashes for the VtkWin32OpenGLRenderWindow. Is it because the VTK was compiled with OpenGL's error handling implementation?

fab_cut gravatar imagefab_cut ( 2019-02-06 15:32:01 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2018-01-29 00:59:25 -0600

Seen: 4,442 times

Last updated: Feb 02 '18