Strange Graphical Display Problems

Hi. I am using matlab on a 32 bit pc with windows XP. When I run my GUI through matlab it all works perfectly. In short it catches an image from a camera and displays image max/min and mean values.
It also shows in a dialog box where the prefdir directory is. My problems arise after I have compiled it and try to run the EXe on the same PC (or indeed any other PC with the MCR).
The graphics just don't work!
Clearly, the image data is there somewhere as the max/min and mean values are close to the values when I run thru matlab. Any suggestions please??
Thanks

Answers (1)

Image Analyst
Image Analyst on 5 Oct 2015
What does it say in the console window? Was there any kind of error message?
You might have trouble finding someone to help since not many people have such an old operating system. Also, what version of MATLAB do you have?

6 Comments

Hi IA. There's nothing in the console window, no error message. I was wondering if it was a java problem?.
Or is there a better way to view my image: (Im sure I have read somewhere that this issue persists with Imshow.
img=mmc.getImage(); %This is fine
width=mmc.getImageWidth();
height=mmc.getImageHeight();
if mmc.getBytesPerPixel==2
pixelType='uint16';
else
pixelType='uint8';
end
img=typecast(img,pixelType);
img=reshape(img, [width, height]);
img=transpose(img);
axes(handles.axes1)
[high,low]=Autoscaleimage(handles,img,3);
imshow(img,[low,high]);
function [high,low]=Autoscaleimage(handles,Image,n)
mn=mean(Image(:));
sd=std2(Image(:));
low=mn-sd;
high=mn+n*sd;
What if you just say
imshow(img,[]);
Yeah I've already done this. It all works fine on a windows 7, so Im coming to the conclusion its something to do with imshow and windows XP.
I've use MATLAB with XP and had no problems, but that was with versions of MATLAB that came out way back then. It's possible if you're using a modern version of MATLAB that there may be quirks when running compiled versions on antique operating systems.
Yes I think your right, matlab 2014b, windows XP, MCR 8.4 and imshow just don't go together :-(

This question is closed.

Asked:

on 5 Oct 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!