I think that the image we were given may be to large…I tried to run the code for it, and the otsu function takes a very very long time to run for it and Python will not display the photo as well, it runs for a while and then crashes. I tried all of the functions for this question for a smaller picture and it was fine…
תנסה לחשוב איך אפשר לייעל את הקוד שלך ולחסוך חישובים שכבר ביצעת. גם אני פתרתי בדרך הנאיבית בהתחלה וראיתי שהיא לא יעילה מספיק…
A small addition - at least on my computer I am able to display a bit less than half of the image (if I crop it)
As I stated now otsu works in 3 seconds however the display method is unable to show the full photo on my computer. ..
Can we add the photos after segmentation to the docx file directly? And not as separate files…
for some reason these lines run for a very long time:
mat = Matrix.load('image.bitmap')
also actions that access the image take vey long, regardless of complexity.
Anybody know why??
Were we supposed to add to the skeleton the function image2bitmap and import numpy? (I used it, but I didn't include it in the submitted .py file)