It's just plain simple copy paste from this

here is my notebook

Hope someone can get right directions why output goes wrong after watershed was applied

  • $\begingroup$ Maybe the problem is that you use growRect in the line finalRectangles = growRect /@ rooms[[All, 2]]; before it is defined? At least it seems to work fine for me when I define growRect first... $\endgroup$ Mar 25, 2020 at 19:58
  • $\begingroup$ @HenrikSchumacher you can see it(issue) earlier, after watershed was applied. It doesn't process whole image, but return part of it $\endgroup$
    – Yu Da Chi
    Mar 25, 2020 at 21:30
  • 1
    $\begingroup$ Ah, I see. I am afraid that I am not sufficiently knowledgeable in this regard. But please state precisely in your question what does not work as expected. People here just hate to be forced to make guesses. (You can edit your quest.) $\endgroup$ Mar 25, 2020 at 21:33
  • $\begingroup$ @HenrikSchumacher my bad =) anyway thanks $\endgroup$
    – Yu Da Chi
    Mar 25, 2020 at 21:46


Your Answer

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