This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$include (c8051f120.inc) | |
mov cseg at 0000H | |
jmp main | |
mov cseg at 0050H | |
main: | |
clr EA | |
mov WDTCN, #0DEH | |
mov WDTCN, #0ADH |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Data::Dumper; | |
use Term::ANSIColor; | |
$clear_string = `clear`; | |
sub print_speelveld{ | |
my $aantalBommen = shift; | |
print " " x 10; | |
for my $i (0..8){ | |
printf("%-10s", $i - 4); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on https://www.mathworks.com/help/images/ref/imsegkmeans.html | |
import cv2 as cv | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from sklearn.cluster import KMeans | |
from sklearn import preprocessing | |
# Building some gabor kernels to filter image |