0

I'm trying to write a script that counts the objects in an image and draws rectangles around them. Initially, the imshow function seemed to work fine but after a while, it shows a window with a content all black and causes octave to hang.
I think this may have happened after installing package "geometry".
I'm running octave on Ubuntu, and I've tried changing default graphics toolkit as suggested by this thread but it does not help for me, the window that is supposed to show the image does not appear at all. I've tried to reinstall octave but this also didn't help.
Octave and the Image and Geometry packages are installed with sudo apt-get install via command line.

Can you help me with this?

1
  • Would you like to share your script for debugging? Aug 4, 2018 at 19:46

1 Answer 1

0

Adding pause command after the imshow command AND changing the graphics toolkit to gnuplot solve the problem. It is interesting however that this was not needed initialy and it might have something to do with installing geometry or some Ubuntu update.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.