The photo was taken during a visit to Uwajima castle, in Shikoku island - Japan. Unlike most of the traditional Japanese castles I've seen the walls had small windows of various shapes (possibly a later addition) that overlooked the lovely scenery outside the town.