Prüfungen oder eine Deadline in der Arbeit? Der ersehnte „Flow Moment“ ist nicht immer da, wenn man ihn braucht. Beobachtet man sich selbst, finden sich aber durchaus förderliche Muster. So können beispielsweise Wiederholungen aber auch kontraintuitive Umstände helfen. Ich glaube es bietet faszinierende Möglichkeiten, sich dem Phänomen „Fluss“ zu widmen. Wir werden ihn aus verschiedensten Perspektiven betrachten. Kunst, Philosophie, Physik, Biophysik, Kosmologie, Neurowissenschaftlich, Psychologisch, uvm., … Es läuft – wir sind einfach im Flow. Was für ein tolles Gefühl. Man beginnt eine Tätigkeit, oft etwas, das starken Fokus benötigt z.B. im Sport, beim Gaming oder in der Arbeit. Oft hat man so eine oder eineRead More →

See my original post on stackoverflow: First Approach: To find the axis and with that the angle of your line I suggest to use a PCA on the non-zero values: As usually this function could also be written as one-liner: And here is an example: Note that for highly noisy data or images with no clear orientation this method will come up with arbitrary rotations. And here is an example output: Second Approach: Ok after clarification of the actual task in a more complicated setting (see comments) here a second approach based on template matching:Read More →