Error using images.internal.morphmex

Error using images.internal.morphmex
Invalid MEX-file 'F:\MATLAB\R2017b\toolbox\images\images\+images\+internal\morphmex.mexw64': The
specified module could not be found.
.
Error in images.internal.morphop (line 101)
B = images.internal.morphmex(ocvMethod, B, logical(nhood), zeros(size(nhood)), unpacked_M);
Error in imerode (line 132)
B = images.internal.morphop(A,se,'erode',mfilename,varargin{:});
Error in imclearborder (line 85)
im2 = imerode(im2,conn);
Error in check_trachea (line 22)
Ib2=imclearborder(Ib1);
Error in lung_extraction (line 13)
[Im_lung,Img_s_lung, closeBW_new,s_max_1_snake,s_max_2_snake,trachea_area]=
check_trachea(phi1,Im_double,psi);
Error in second_to_read_dicom_file (line 27)
[Im_lung{i},Img_s_lung{i},
closeBW_new{i},s_max_1_snake,s_max_2_snake,trachea_area,epsilon,delt,mu,alf]= lung_extraction(
images{i},PS(1)) ;

Answers (1)

You probably need to reinstall the Image Processing Toolbox

5 Comments

i m getting the the same error ...i have reinstalled matlab ..still getting this error on laptop .
Error using images.internal.morphmex
Invalid MEX-file 'C:\Program Files\MATLAB\R2018b\toolbox\images\images\+images\+internal\morphmex.mexw64': Missing dependent shared libraries:
'CONCRT140.dll' required by 'C:\Program Files\MATLAB\R2018b/bin/win64\opencv_core340.dll->C:\Program
Files\MATLAB\R2018b/bin/win64\libmwmorphop_ocv.dll->C:\Program Files\MATLAB\R2018b\toolbox\images\images\+images\+internal\morphmex.mexw64'.
Error in images.internal.morphop (line 101)
B = images.internal.morphmex(ocvMethod, B, logical(nhood), zeros(size(nhood)), unpacked_M);
Error in imerode (line 87)
B = images.internal.morphop(A,se,'erode',mfilename,varargin{:});
Error in imclearborder (line 85)
im2 = imerode(im2,conn);
Error in IMAGEPROCEESING1 (line 8)
BW = imclearborder(BW2);
Looks like you might need to download a Microsoft Runtime Library, https://www.microsoft.com/en-us/download/details.aspx?id=48145
Worked for me. Thanks Walter!
Hey ? Thanks for your help That was also my problem Thank you
Thank you for the help
there were the same error with me

Sign in to comment.

Categories

Find more on Programming in Help Center and File Exchange

Asked:

on 23 Nov 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!