It is best to experiment with the window size until one is found that is appropriate for the problem given.
Work Step by Step
It is difficult to know the optimal viewing angle "automatically". The optimal viewing angle depends on what features one wishes to see, which can vary from problem to problem. Thus, some experimentation is necessary.