MATLAB: Image with segments looks different after imread()

image corrupt when imread()image not read in correctlyimport image problem

Hello
I have a question concerning an image with my image segments. I am creating this image using an software for segmentation that exports the resulted images as png file format. The segments look quite good but when I am trying to read in the image in MATLAB using imread() and the use imshow() to display it many gaps in the edge are generated.
Do you know what can cause this problem ? Is it a way to overcome it ?
In the link below you can see an example of my images:
1. Image generated by the software
2. Image displayed using imshow() in MATLAB

Best Answer

Try zooming in in the figure window, the points are probably still there, just not visible when zoomed out due to resizing/resolution within the figure window.