Qt Image / QPainter

Image Viewer Example
Basic Drawing Example

QT5 TUTORIAL MAINWINDOW AND IMAGEVIEWER USING CREATOR – PART A – 2020
QT5 TUTORIAL MAINWINDOW AND IMAGEVIEWER USING CREATOR – PART B – 2020

QT drawing a circle [duplicate]
What is the difference between QImage and QPixmap?
Diff between QImage, QPixmap, QPicture

  • Qt provides four classes for handling image data: QImage, QPixmap, QBitmap and QPicture. QImage is designed and optimized for I/O, and for direct pixel access and manipulation, while QPixmap is designed and optimized for showing images on screen. QBitmap is only a convenience class that inherits QPixmap, ensuring a depth of 1. Finally, the QPicture class is a paint device that records and replays QPainter commands.
  • QImage: Fast to draw to, slow to display.
    QPixmap: Slow to draw to, fast to display.

YouTube

Qt5 C++ Drawing Ellipse (QPainter, QPen, QBrush) In Qt #26

TSM_CompVis

Neural Networks and Deep Learning
Deep Learning, Ian Goodfellow and Yoshua Bengio and Aaron Courville
Code samples for my book “Neural Networks and Deep Learning”
CS231n Convolutional Neural Networks for Visual Recognition
Padding and Stride
A Beginner’s Guide To Understanding Convolutional Neural Networks Part 2

skimage

General examples
Hysteresis thresholding
Mean filters
Denoising a picture
Unsharp masking
Canny edge detector
Straight line Hough transform
Circular and Elliptical Hough Transforms
Rescale, resize, and downscale
Piecewise Affine Transformation
Histogram Equalization
RGB to grayscale
Adapting gray-scale filters to RGB images
Thresholding, Otsu’s method
Morphological Filtering
Rank filters
Image Segmentation
A crash course on NumPy for images

API

Module: io
Module: filters
Module: transform
Module: morphology
Module: color
Module: exposure

Tutorial

Bright ridge detection not working as expected with Frangi, Frangi-, Hessian-Filter
IPython (Jupyter) widgets: An image convolution demo
Wiener Filter for image deblur
github.com/scikit-image/skimage-demos/blob/master/clock_deblur.py
Histogram Equalization

scipy

Multidimensional image processing (scipy.ndimage)

API

scipy.ndimage.binary_fill_holes

Python

python-kurs.eu

Generatoren und Iteratoren
Lambda, filter, reduce und map
Listen-Abstraktion (List Comprehension)

ORDIX blog

Python Generator-Funktionen und -Expressions: Ein alter Hut kann auch modern sein
Einstieg in Neuronale Netze mit TensorFlow und Keras
Data Mining in der Praxis (Teil I): Was ist Data Mining?
Data Mining in der Praxis (Teil II): Klassifikation
Data Mining in der Praxis (Teil III) Lineare Regression

Real Python

Python 3’s f-Strings: An Improved String Formatting Syntax (Guide)

name = "Eric"
age = 28

### Option #1: %-formatting
print("Hello, %s. You are %d." % (name, age))

### Option #2: str.format()
print("Hello, {}. You are {}.".format(name, age))

### Option #3: f-Strings
print(f"Hello, {name}. You are {age}.")

Homework

Digitize your Receipts using Computer Vision
Deep Dive Into OCR for Receipt Recognition
Simple OCR implementation on Android with Google’s ML Kit

find intersection point of two lines drawn using houghlines opencv
Intersection of two lines defined in (rho/theta ) parameterization
Reading multiple invoices from an image using OCR/computer vision
How can I detect an object from static image and crop it from the image using openCV?
Receipt Scanning – How to scan a receipt and extract data from it

how to find coordinates of intersection of lines after using “houghlines”

Expense Reports in a Snap (or a Tap)

Homogene Koordinaten

Homogene Koordinaten
Ebenengleichung
Koordinatenform

Homogene Koordinaten
Lecture 2: Homogeneous Coordinates, Lines and Conics (PDF)

Computer Vision (SBE404B)

Asem Alaa
EslamAdel
Ayman Anwar

Computer Vision (SBE404B) – Spring 2020
Computer Vision (SBE404B) – Spring 2019
Computer Vision (SBE404B) – Spring 2018

Week 1: Warming up with Python Basics
Week 2: Image Processing 1
Week 3: Images in Frequency Domain
Week 4: Image Filtering and Edge Detection
Week 5: Hough Transform (Line and Circle Detection)
Week 6: Corner Detection
Week 7: Segmentation (Thresholding and Region growing)
Week 8: Segmentation (Clustering Segmentation)
Week 10: Image features, feature descriptors, and feature matching

github.com/sbme-tutorials/cv-week1-demo
github.com/sbme-tutorials/sbe401-week2-demo
github.com/sbme-tutorials/cv_week3_demo
github.com/sbme-tutorials/cv-week4-demo
github.com/sbme-tutorials/cv-week8-demo

Week 1

Deep Learning Alchemy to close the Perception Loop in Vision: Part 1 – Image Alignment with Pytorch
CS231n Convolutional Neural Networks for Visual Recognition – Python Numpy Tutorial
CS228 Python Tutorial (Notebook)
Python Single Line For Loops
The Confusing Double Colon (::) in NumPy

Flags

PyX — Python graphics package
Python:Flags Tutorial
Python:Flags with Lines Tutorial

Python Essentials

Data Structure

4. Data Structures (list, dict, tuples, sets, strings)
5. Data Structures

Python Data Types
Basic Data Types in Python
Python Data Types
Data Types in Python

Format String

Format String Syntax
Format String Syntax
Format Specification Mini-Language

Slice

Understanding slice notation

Loop, Iteration

Loop better: A deeper look at iteration in Python
Python Basics: Iteration, Iterables, Iterators, and Looping

Exercise

W3Resources: NumPy Exercises, Practice, Solution
Machine Learning Plus: 101 NumPy Exercises for Data Analysis (Python)
HackerRank: Numpy Challenges

Week 2

How can I draw lines into numpy arrays?
How to draw thick anti-aliased lines in SciPy?
scikit-image – Module: draw
scikit-image – Shapes
Wikipedia: Line drawing algorithm
Rasterung von Linien
Rasterung

Week 3

Convert NumPy

How to convert a boolean array to an int array

Histogramm

Histograms in Image Processing with skimage-Python

Week 4

Image Processing with Python

Python 3 – Built-in Functions
Python 3 – Built-in Types

scikit-image.org

Module: transform

kite

resize
rescale

YouTube

Image Analysis in Python with SciPy and Scikit Image | Scipy 2019 Tutorial | Nunez-Iglesias
Image Analysis in Python with SciPy and scikit-image | SciPy 2018 Tutorial | Stefan van der Walt
20 – Introduction to image processing using scikit-image in Python

ABC

Glossary: ABC
Abstract Base Classes for Containers

Iterable / Iterator

Iter-ables are able to be iterated over. Iter-ators are the agents that perform the iteration.

Iterators are lazy single-use iterables (not precompiled, just-in-time calculation)

  • They’re “lazy” because they have the ability to only compute items as you loop over them.
  • And they’re “single-use” because once you’ve “consumed” an item from an iterator, it’s gone forever.
  • The term “exhausted” is often used for an iterator that has been fully consumed.

The Iterator Protocol: How “For Loops” Work in Python

Importantly, it should be noted that iterators are stateful. Meaning once you’ve consumed an item from an iterator, it’s gone. So after you’ve looped over an iterator once, it’ll be empty if you try to loop over it again.

An iterator is like a stream of items. You can only look at the items in the stream one at a time and you only ever have access to the first element. To look at something in the stream, you need to remove it from the stream and once you take something from the top of the stream, it’s gone from the stream for good.

range

range is an iterable, but not an iterator

Sequence Types — list, tuple, range
Ranges
Python’s range() Function Explained
Python: range is not an iterator!

  • immutable sequence type
  • looping a specific number of times in for loops
  • When you’re using an iterator, every loop of the for statement produces the next number on the fly.

The advantage of the range type over a regular list or tuple is that a range object will always take the same (small) amount of memory, no matter the size of the range it represents (as it only stores the start, stop and step values, calculating individual items and subranges as needed).

zip

Python iterator and zip
Using the Python zip() Function for Parallel Iteration

Packing / Unpacking

4.7.4. Unpacking Argument Lists

Generator

Iterable -> Iterator -> Generator

Python Generators
Generators
Python Generators vs Iterators – Comparison Between Python Iterators and Generators
Difference between Python’s Generators and Iterators

Generator Expressions vs. List Comprehension

# Generator expression
(x*2 for x in range(256))

# List comprehension
[x*2 for x in range(256)]
line_list = ['  line 1\n', 'line 2  \n', ...]

# Generator expression -- returns iterator
stripped_iter = (line.strip() for line in line_list)

# List comprehension -- returns list
stripped_list = [line.strip() for line in line_list]

Generator Expressions vs. List Comprehension
Generator expressions and list comprehensions
Python List Comprehensions vs Generator Expressions

Week 10

Converting image from RGB to LUV and back results in different image

K-Means Clustering in OpenCV
Liste der Farbräume
CIELUV-Farbraumsystem
CIELUV

Week 14

Hiroto Honda’s Medium Blog Posts

KIT Webcast

Algorithmen 1, Vorlesung, SS 2019

Algorithmen 1, Vorlesung, SS 2019

Beschreibung:

  • Ergebnisüberprüfung (Checkers) und Zertifizierung
  • Asymptotische Algorithmenanalyse: worst case, average case, probabilistisch, amortisiert
  • Grundbegriffe des Algorithm Engineering
  • Effektive Umsetzung verketteter Listen
  • Unbeschränkte Arrays, Stapel, und Warteschlangen
  • Hashtabellen: mit Verkettung, linear probing, universelles Hashing
  • Sortieren: effiziente Algorithmen (mergesort, quicksort), untere Schranken, radix sort
  • Selektion: quickselect
  • Prioritätslisten: binäre Heaps, addrssierbare Prioritätslisten
  • Sortierte Folgen/Suchbäume: Wie unterstützt man alle wichtigen Operationen in logarithmischer Zeit
  • Graphen (Repräsentation, Traversierung: Breitensuche, Tiefensuche, Anwendungen (topologisches Sortieren,…), Kürzeste Wege: Dijkstra’s Algorithmus, Bellman
  • Ford Algorithmus, Minimale Spannbäume: Kruskals Algorithmus, Jarnik-Prim Algorithmus)
  • Generische Optimierungsalgorithmen (Greedy, Dynamische Programmierung, systematische Suche, Lokale Suche)

Lehrinhalt:

  • Grundbegriffe des Algorithm Engineering
  • Asymptotische Algorithmenanalyse (worst case, average case, probabilistisch, amortisiert)
  • Datenstrukturen z. B. Arrays, Stapel, Warteschlangen und Verkettete Listen
  • Hashtabellen
  • Sortieren: vergleichsbasierte Algorithmen (z.B. quicksort, insertionsort), untere Schranken, Linearzeitalgorithmen (z.B. radixsort)
  • Prioritätslisten
  • Sortierte Folgen,Suchbäume und Selektion
  • Graphen (Repräsentation, Breiten-/Tiefensuche, Kürzeste Wege, Minimale Spannbäume)
  • Generische Optimierungsalgorithmen (Greedy, Dynamische Programmierung, systematische Suche, Lokale Suche)
  • Geometrische Algorithmen

Videos:

  • 01: Algorithmik, Langzahl-Multiplikation, Addition, Pseudocode
  • 02: Schulalgorithmus, O-Kalkül, Karatsuba-Ofman-Multiplikation
  • 03: Korrektheit von Algorithmen, Asymptotische Laufzeiten
  • 04: O-Kalkül, Invarianten, Laufzeiten (Teile und Herrsche Ansatz)
  • 05: Laufzeitanalyse, Rekurrenzen, Master Theorem, Folgen als Felder und Listen
  • 06: Folgen, Verkettete Listen, Unbeschränkte Felder, Account-Methode
  • 07: Stapel, Warteschlangen, Hashing, Kollisionen
  • 08: Skip List, Amortisierte Liste, Aggregat Methode, Hotlist, Duplikaterkennung
  • 09: Kollisionen, Universelles Hashing, Kryptographische Hashfunktionen, Einfache Sortieralgorithmen
  • 10: Einfache Sortieralgorithmen, Sortieren durch Mischen, Quicksort
  • 11: Halbrekursive Implementierung, Quicksort vs. Mergesort, Ganzzahliges Sortieren
  • 12: Adaptives Sortieren, Insertion Sort, Natural Merge Sort, Split Sort
  • 13: Prioritätslisten, Binäre Heaps, Adressierbare Prioritätslisten
  • 14: Sortierte Folgen, Binäre Baumsuche, Naives Einfügen, Initialisierung
  • 15: Bucket Sort Spezial, Bucket Queue, Binary Radix Heap
  • 16: Locate, Graphen, Kantenfolgenrepräsentation, Adjazenzfelder
  • 17: Kantenfolgenrepräsentation, Adjazenzfelder, Adjazenzlisten, Adjazenz-Matrix, Graph-Traversierung
  • 18: Dijkstras Algorithmus, Graph-Traversierung, Kürzeste Wege, Tiefensuche
  • 19: Dijkstras Algorithmus, Korrektheit,Bellman-Ford Algorithmus, Kante relaxieren
  • 20: Bellman-Ford Algorithmus, Transit-Node Routing
  • 21: Jarnik-Prim/Kruskals-Algorithmus
  • 22: Generische Optimierungsansätze
  • 23: Dijkstras- und Bellmann Ford Algorithmus, Minimale Spannbäume, Steinerbäume

Algorithmen 2, WS 2018/19

Algorithmen 2, WS 2018/19

Videos:

  • 01: Algorithm Theory
  • 02: Datenstrukturen, Pairung Heaps, Fibonacci Heaps, Union-by-Rank
  • 03: Gray-/JouleSort, Pairing Heaps, Dijkstra’s Algorithmmus
  • 04: Dijkstra’s Algorithmus, Radix-Heaps, Bucket-Queue, Lufzwit Dijkatra, Fibanacci Heaps
  • 05: Monotone ganzzahlige Prioritätslisten, Radix-Heaps, Knotenpotenziale
  • 06: DFS, Bucket Queues, Analyse für MST
  • 07: Schrumpfgraph, SCC Berechnung, Linear programming, Residual Graph, Ford Fulkerson Algorithm
  • 08: Ford Fulkerson Algorithm, Blocking Flows, Dijkstras Algorithmus, Floyd Warshall
  • 09: Ford Fulkerson, Dinitz Algorithm,blocking flows, Dinitz analysis, Pre-flow-push algorithms
  • 10: Preflow-Push Algorithms, Pratial Correctness, FIFO Preflow push, Residualgraph
  • 11:Ford Fulkerson Algorithm, Blocking Flows, Random Graphs, FIFO Preflow push
  • 12: Randomisierte Algorithmen, Cuckoo Hashing, Space Efficient Cuckoo Hashing
  • 13: Cuckoo Hashing, Das Sekundärspeichermodell, Mittelgroße PQs, Analyse – I/Os
  • 14: Spannbäume, Matching, Monte Carlo Simulation, Matrix-Matrix Multiplikation, Coupon Collector
  • 15: Der Approximationsfaktor, Pseudopolynomielle Algorithmen, 9 Fixed-Parameter-Algorithmen
  • 16: Naive tiefenbeschränkte Suche, Kernbildung für Vertex Cover, Parallele Algorithmen,
  • 17: Analyse paralleler Algorithmen, Hyperwürfelalgorithmus, Paralleles Sortieren
  • 18: Paralleles Sortieren, Parallele Algorithmen, Parametrisierte Algorithmen
  • 19: Geometrische Algorithmen, Streckenschnitt, Überlappungen
  • 20: Streckenschnitt, Konvexe Hülle, Geometrische Methoden, Übung
  • 21: Kleinste einschließende Kugel, Wavelet Tree
  • 22: Wavelet Tree, Onlinealgorithmen, Paging
  • 23: Strings sortieren, Suffixe sortieren, Knuth-Morris-Pratt
  • 24: Suffix-Baum, Alphabet-Modell, Übung
  • 25: Suffixtabellen, Differenzenüberdeckungen, LCP-Array, Textkompression
  • 26: LCP-Array, Lempel-Ziv Kompression, Burrows-Wheeler-Transformation
  • 27: SAT Solving, Union-find merging, Graph Contraction, Label Propagation
  • 28: Übung: In-place Multikey Quicksort, Partitionierung, Suffix-Array, LCP-Array
  • 29: Algorithm Engineering, Fortgeschrittene Datenstrukturen, Fortgeschrittene Graphenalgorithmen
  • 30: Approximationsalgorithmen, Pseudopolynomielle Algorithmen, Hyperwürfelalgorithmus

Algorithmen 2, Vorlesung, WS 2019/20

Videos:

  • 01: Rolle der Algorithmik, Algorithm Engineering, Algorithm Libraries
  • 02: Experimental Methodology, Adressierbare Prioritätenlisten, Pairing Heaps
  • 03: Fortgeschrittene Datenstrukturen, Binomialbäume, Fortgeschrittene Graphenalgorithmen
  • 04: Binomialbäume, Radix-Heaps, deleteMin-Operationen
  • 05: All-Pairs Shortest Paths, Knotenpotentiale, Routenplanung
  • 06: Repräsentation offener Komponenten, Übung: Spezielle Priority Queues, Radix Heaps
  • 07: Maximum Flows and Matchings, s-t Cuts, Ford Fulkerson Algorithm, Dinitz Algorithm
  • 08: Computer Blocking Flows, Übung: Kürzeste-Wege-Suche, Bidirektionale Suche, A*-Suche
  • 09: Ford Fulkerson Algorithm, Level Function, Partial Correctness, FIFO Preflow push
  • 10: Flows and Matchings, MFIFO Modified FIFO Selection Rule, Timings: CG 1, CG2, AMO
  • 11: Randomisierte Algorithmen: Sort Checking, Hashing; Externe Algorithmen
  • 12: Externe Algorithmen: Externe Prioritätslisten, Übung: Potentialmethode, preflow-push Algorithmus
  • 13: Approximationsalgorithmen: Approximationsfaktor; Pseudopolynomielle Algorithmen
  • 14: Fixed-Parameter-Algorithmen, Naive tiefenbeschränkte Suche, Kernbildung für Vertex Cover, Übung
  • 15: Fixed-Parameter-Algorithmen, Parallele Algorithmen, Hyperwürfelalgorithmus
  • 16: Paralleles Sortieren: Anfänger- und Theoretiker-Parallelisierung, Mehrwegmischen, Übung
  • 17: Geometrische Algorithmen, Übung: Approximationsalgorithmen, Parametrisierte Algorithmen
  • 18: Streckenschnitt, 2D Konvexe Hülle, Kleinste einschließende Kugel, 2D Bereichssuche
  • 19: Bitvektoren, Übung: Geometrische Algorithmen, Bitvektoren, 2D Range Queries, Linienschnitt
  • 20: Onlinealgorithmen, Paging algorithms, Conservative algorithms, Randomized algorithms
  • 21: Stringology (Zeichenkettenalgorithmen): Strings sortieren, Knuth-Morris-Pratt, Border-Array
  • 22: Stringology: Notation, Suffixe sortieren, Suffixbaum, Übung: Online Algorithmen
  • 23: SA mit Präfix Verdopplung, Rekursion, COBS
  • 24: LCP-Array, Verlustfreie Textkompression, Übung: in-place Multikey Quicksort, LCP-Array
  • 25: Datenkompression, Lempel-Ziv Kompression, Burrows Wheeler Transformation, Backward Search
  • 26: Efficient Document Retrieval on General Sequences
  • 27: Pairing Heaps, Bucket Queue, Residual Graph, Randomisierte Algorithmen
  • 28: Approximationsalgorithmen, Fixed-Parameter-Algorithmen, Parallele Algorithmen, Stringology

Theoretische Grundlagen der Informatik, Vorlesung, WS 2019/20

Videos:

  • 01: Formale Sprachen, Reguläre Sprachen, Reguläre Ausdrücke, Endliche Automaten
  • 02: Kontextfreie Grammatiken, Nichtderterministische endliche Automaten, Potenzmengenkonstruktion
  • 03: Entfernen von ɛ​-Übergängen, Satz von Kleene, Pumping-Lemma für reguläre Sprachen
  • 04: Pumping-Lemma für reguläre Sprachen, Verallgemeinertes Pumping-Lemma, Äquivalenzklassenautomat
  • 05: Äquivalenz, Rechtsinvarianz und Index, Satz von Nerode, Registermaschine, Turingmaschine
  • 06: Turing-Maschine, berechenbar/totalrekursiv, Gödelnummer, Diagonalsprache
  • 07: Satz von Rice, Post’sches Korrespondenzproblem, Kodierungsschemata, Entscheidungsproblem
  • 08: Nichtdeterministische Turingmaschine, Polynomiale Transformation, Satz von Cook
  • 09: Die Probleme 3SAT, 2SAT, MAX2SAT, CLIQUE, COLOR und EXACT COVER
  • 10: Die Probleme SUBSET SUM, PARTITION und KNAPSACK, Polynomielle Hierarchie, Suchprobleme
  • 11: Problem INTEGER PROGRAMMING, Pseudopolynomiale Algorithmen, Absolute Approximationsalgorithmen
  • 12: Metrisches TSP, Approximationsschemata, Maximierungsprobleme, Optimierungsprobleme
  • 13: Grammatiken, Chomsky-Hierarchie
  • 14: Pumping-Lemma und Ogden´s Lemma für kontextfreie Sprachen, Eigenschaften kontextfreier Sprachen
  • 15: Eigenschaften kontextfreier Sprachen, Greibach-Normalform, Kellerautomaten
  • 16: Kellerautomaten, Greibach-Normalform, Sprache der korrekten Rechenwege
  • 17: Informationstheorie, Entropie, Kodierungsbäume, Lauflängenkodierung
  • 18: Paritätscodes, Kreuzsicherung, Block-Codes, Hamming-Distanz und Fehlerkorrektur