Segmentation violation Error in my MEX file
1 次查看(过去 30 天)
显示 更早的评论
mex unravel.c
IM=imread('F:\TEST\test.tiff');
IM=imresize(IM,[1024 1024]);
TG=im2jpeg(IM,50);
TG=jpeg2im(TG);
after running this code i got an error
Abnormal termination:
Segmentation violation
%few lines in between this %
Caught MathWorks::System::FatalException
[Please exit and restart MATLAB]>>
2 个评论
Walter Roberson
2012-9-29
Your traceback shows a problem in the (unknown code for) unravel, but the MATLAB code you show has no obvious call to "unravel". Where is "unravel" being called?
Walter Roberson
2012-10-1
The forum indicates that you have edited your Question, but it looks pretty much the same to me ? I don't see what you have changed?
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!