It seems that you have not set Windows environment path to OpenCV installed directory, and then it causes the "...module could not be found" error.
Please check the step 4 in installation chapter of Simulink_for_PCV_En.pdf.
This is a superb material, is a step forward for the entire developers community. I appreciate a lot.
In my system:
All files type: nid_csst_ocv_xxxxx_xxxxxxx.mdl
error (Invalid >MEX-file '...\Lib\sfun_pcv.mexw64': The >specified module could not be found).
Openni path ok (please see below)
setup_opencv.m: ran ok
setup_kinectsdk.m: ran ok
makecmexfile4pcv.m: ran ok
makecmexfile4nid.m: ran ok
setup_openni.m: doesn't ran. Error using setup_openni>GuiBasedSetUp (line 210)
ERROR: OpenNI might not be installed or version mismatch.
Error in setup_openni (line 51)
[openNI_dir] = GuiBasedSetUp();
HW &SW installed:
Opencv path: C:\opencv\build\x64\vc10\bin
Windows 7, 64 bits
Kinect for windows SDK 1.8
Microsf Visual Studio Express 2012
Microsoft SDK for windows 7.1
How to solve the error (Invalid >MEX-file '...\Lib\sfun_pcv.mexw64': The >specified module could not be found)
It needs to set Windows path (not MATLAB path) to the folder which OpenCV dll stored.
- In case of 32bit version of MATLAB R2011b or later,
set path to e.g. C:\opencv\build\x86\vc10\bin
-In case of 64bit version of MATLAB R2011b or later,
set path to e.g. C:\opencv\build\x64\vc10\bin
I'm getting the same error (Invalid >MEX-file '...\Lib\sfun_pcv.mexw64': The >specified module could not be found). Have you had a chance to fix the error yet? If yes, looking forward to how I can fix it as well.
Also, if I wanted to add a 'Video to Workspace' block after the Pointcloud block, would it be possible? There isn't a output port. Is there a way to extract the XYZ data?