Image Processing program running just fine- added in variables and freezes

possibly your

mouseClicked()

starts a endless while loop ( one of the 4 while )

  • i not say do never use while
  • i not say do never start loops on click ( inside mouseClicked )
  • but i do say use PRINTLN ( in all 4 while times 2 if else )
    to know what is going on.
2 Likes