MODULE 2 ΚΕΦΑΛΑΙΟ 2. Binary Image Processing υαδική Επεξεργασία Εικόνων

Μέγεθος: px
Εμφάνιση ξεκινά από τη σελίδα:

Download "MODULE 2 ΚΕΦΑΛΑΙΟ 2. Binary Image Processing υαδική Επεξεργασία Εικόνων"

Transcript

1 MODULE 2 ΚΕΦΑΛΑΙΟ 2 Binary Image Processing υαδική Επεξεργασία Εικόνων Binary Image Generation ηµιουργία Ψηφιακών εικόνων Logical Operations Λογικές Λειτουργίες Blob Coloring Χρωµατισµός Μερών Binary Morphology Ψηφιακή Μορφολογία Binary Image Compression Συµπίεση Ψηφιακής Εικόνας QUICK INDEX 2.1

2 MODULE 2 INDEX ΠΕΡΙΕΧΟΜΕΝΑ ΚΕΦΑΛΑΙΟΥ 2 BINARY IMAGE GENERATION ΗΜΙΟΥΡΓΙΑ ΨΗΦΙΑΚΩΝ ΕΙΚΟΝΩΝ GRAY-LEVEL THRESHOLDING ΑΤΩΦΛΙΩΣΗ ΜΑΥΡΟΑΣΠΡΗΣ ΕΙΚΟΝΑΣ HISTOGRAM APPEARANCE ΕΜΦΑΝΙΣΗ ΙΣΤΟΓΡΑΜΜΑΤΟΣ BIMODAL HISTOGRAM ΙΣΤΟΓΡΑΜΜΑ ΜΕ 2 ΠΕΡΙΟΧΕΣ ΙΑΦΟΡΕΤΙΚΩΝ ΚΑΤΑΝΟΜΩΝ THRESHOLD SELECTION FROM HISTOGRAM ΕΠΙΛΟΓΗ ΚΑΤΩΦΛΙΩΣΗΣ ΑΠΟ ΤΟ ΙΣΤΟΓΡΑΜΜΑ LOGICAL OPERATIONS ON BINARY IMAGES ΛΟΓΙΚΕΣ ΛΕΙΤΟΥΡΓΙΕΣ ΣΕ ΚΥΑ ΙΚΕΣ ΙΚΟΝΕΣ LOGICAL OPERATIONS ON IMAGES ΛΟΓΙΚΕΣ ΛΕΙΤΟΥΡΓΙΕΣ ΣΕ ΕΙΚΟΝΕΣ EXAMPLE - AUTOMATED INSPECTION ΠΑΡΑ ΕΙΓΜΑ-ΑΥΤΟΜΑΤΟΣ ΕΛΕΓΧΟΣ BLOB COLORING ΧΡΩΜΑΤΙΣΜΟΣ ΜΕΡΩΝ BLOB COLORING EXAMPLE ΠΑΡΑ ΕΙΓΜΑ ΧΡΩΜΑΤΙΣΜΟΥ ΜΕΡΩΝ BINARY MORPHOLOGY ΥΑ ΙΚΗ ΜΟΡΦΟΛΟΓΙΑ STRUCTURING ELEMENTS OR WINDOWS ΣΤΟΙΧΕΙΑ ΚΑΤΑΣΚΕΥΕΙΣ Η ΠΑΡΑ ΥΡΑ WINDOW NOTATION AND WINDOWED SET ΣΥΜΒΟΛΙΣΜΟΣ ΠΑΡΑΘΥΡΩΝ ΚΑΙ ΣΥΝΟΛΑ ΠΑΡΑΘΥΡΩΝ GENERAL BINARY FILTER ΓΕΝΙΚΑ ΥΑ ΙΚΑ ΦΙΛΤΡΑ DILATION, EROSION, AND MEDIAN (MAJORITY) ΙΑΣΤΟΛΗ, ΣΥΣΤΟΛΗ, ΚΑΙ ΜΕΣΑΙΟΣ (ΠΛΗΟΨΙΦΙΑ) QUALITATIVE PROPERTIES OF DILATION ΠΟΙΟΤΙΚΕΣ Ι ΙΟΤΗΤΕΣ ΤΗΣ ΙΑΣΤΟΛΗΣ QUALITATIVE PROPERTIES OF EROSION 2.2

3 ΠΟΙΟΤΙΚΕΣ Ι ΙΟΤΗΤΕΣ ΤΗΣ ΣΥΣΤΟΛΗΣ QUALITATIVE PROPERTIES OF MEDIAN ΠΟΙΟΤΙΚΕΣ Ι ΙΟΤΗΤΕΣ ΤΟΥ ΜΕΣΑΙΟΥ OPENING AND CLOSING ΑΝΟΙΓΜΑ ΚΑΙ ΚΛΕΙΣΙΜΟ OPEN-CLOSE AND CLOSE-OPEN ΑΝΟΙΓΜΑ-ΚΛΕΙΣΙΜΟ ΚΑΙ ΚΛΕΙΣΙΜΟ-ΑΝΟΙΓΜΑ SKELETONIZATION ΣΚΕΛΕΤΟΠΟΙΗΣΗ APPLICATION EXAMPLE ΠΑΡΑ ΕΙΓΜΑ ΕΦΑΡΜΟΓΗΣ RUN-LENGTH CODING ΚΩ ΙΚΑΣ ΜΗΚΟΥΣ ΙΑ ΡΟΜΩΝ CONTOUR REPRESENTATION AND CHAIN CODING ΑΝΤΙΠΡΟΣΩΠΕΥΣΗ ΠΕΡΙΓΡΑΜΜΑΤΟΣ ΚΑΙ ΚΩ ΙΚΕΣ ΑΛΥΣΙ ΕΣ EXERCISES ΑΣΚΗΣΕΙΣ 2.3

4 BINARY IMAGES ΥΑ ΙΚΕΣ ΕΙ ΟΝΕΣ A digital image is an array of numbers: sampled image intensities Μια ψηφιακή εικόνα είναι ένας πίνακας από αριθµούς: δείγµατα από την φωτεινότητα εικόνας columns rows A 10 x 10 gray-level image array Ένας 10 x 10 επιπέδων φωτεινότητας πίνακας εικόνας Each gray level is quantized: assigned one of a finite set of numbers (generally integers indexed from 0 to K-1. Κάθε επίπεδο φωτεινότητας κβαντοποιηται: του δίνεται ένας αριθµός από κάποιο πεπερασµένο σύνολο αριθµών (γενικά ακέραιοι µε εκθέτες από 0 µέχρι K-1) There are K = 2 B possible gray levels: Υπάρχουν K = 2 B πιθανά επίπεδα φωτεινότητας Each pixel is represented by B bits. Κάθε στίγµα αντιπροσωπεύεται από B bits Binary images have B = 1. Οι δυαδικές ηδονές έχουν B = 1 2.4

5 A 10 x 10 binary image Μια 10 x 10 δυαδική εικόνα How do binary images arise? Since Πως εµφανίζονται οι δυαδικές εικόνες; Επειδή binary = bi-valued δυαδικό = δυο-τιµές the (logical) values '0' or '1' usually indicate the absence or presence of an image property in an associated gray-level image: οι (λογικές) τιµές 0 η 1 συνηθως δείχνουν την απουσία η την παρουσία σε κάποιο χαρακτηριστικό της εικόνας σε µια εικόνα επιπέδων φωτεινότητας: - Points of high or low intensity (brightness) Σηµεία από υψηλή η χαµηλή ένταση (φωτεινότητας) - Points where an object is present or absent Σηµεία όπου ένα αντικείµενο είναι παρόν η απόν - More abstract properties, such as smooth vs. nonsmooth, etc. Πιο αφηρηµένα χαρακτηριστικά, όπως οµαλότητα σε αντίθεση µε µηοµαλότητα, κλπ. Convention - We will make the associations Εθιµοτυπία - Θα κάνουµε την συσχέτιση '1' = BLACK '0' = WHITE 2.5

6 BINARY IMAGE GENERATION ΗΜΙΟΥΡΓΙΑ ΥΑ ΙΚΩΝ ΕΙΚΟΝΩΝ Tablet-Based Input: Είσοδος βάσης Tablet: Binary images can derive from simple sensors with binary output. Οι δυαδικές εικόνες µπορούν να παραχθούν από ένα απλό όργανο αίσθησης µε δυαδική έξοδο Simplest example: tablet, resistive pad, or light pen Απλούστερο παράδειγµα: tablet, resisitve pad, η πέννα φωτός All pixels initially assigned value '0': Όλα τα στίγµατα αρχικά περνούν την τιµή '0': I = [I(i, j)], I(i, j) = '0' for all (i, j) = (row column) When pressure or light is applied at (i 0, j 0 ), the image is assigned the value '1': Όταν πίεση η φως πέφτει πάνω στο (i 0, j 0 ), η εικόνα παίρνει την τιµή '1': I(i 0, j 0 ) = '1' This continues until the user completes the drawing. Αυτό συνεχίζεται µέχρις ότου ο χρήστης τελειώσει το σχέδιο 2.6

7 Quite useful for engineering drawing, entering handprinted characters, etc. Χρήσιµο για σχέδια µηχανικών, καταχωρεί χειρόγραφων χαρακτήρων, κλπ. Another example. Ακόµα ένα παράδειγµα 2.7

8 GRAY-LEVEL THRESHOLDING ΚΑΤΩΦΛΙΩΣΗ ΕΠΙΠΕ ΩΝ ΦΩΤΕΙΝΟΤΗΤΑΣ Usually a binary image is obtained from a gray-level image. Συνήθως µια δυαδική εικόνα παίρνεται από µια µαυρόασπρη εικόνα Advantages: (Πλεονεκτήµατα) - B-fold reduction in required storage B-fold µείωση στον χώρο αποθήκευσης - Simple abstraction of information Απλός αποχωρισµός των πληροφοριών - Fast processing - logical operators Γρήγορη επεξεργασία λογικές λειτουργίες - Can be further compressed Μπορεί να συµπιεστεί περισσότερο Simple Thresholding Απλή Κατωφλίωση The simplest of image processing operations Η απλούστερη λειτουργία στην επεξεργασία εικόνας An extreme form of gray-level quantization Μια ακραία µορφή κβαντοποίησης επιπέδων φωτεινότητας Define an integer threshold T (in the gray-scale range) Ορίζουµε ένα ακέραιο κατώφλι T (στην κλίµακα των επιπέδων φωτεινότητας) Compare each pixel intensity to T Συγκρίνουµε την ένταση κάθε στίγµατος µε το T 2.8

9 Thresholding (Κατωφλιωση) Suppose gray-level image I has Ας υποθέσουµε µια µαυρόασπρη εικόνα I που έχει K gray-levels: 0, 1, 2,..., K-1 Select threshold T { 0, 1, 2,..., K-1}. Επιλέγουµε το κατώφλι T { 0, 1, 2,..., K-1}. Compare every gray-level in I to T. Συγκρίνουµε κάθε επίπεδο φωτεινότητας στην εικόνα I µε το T. Define a new binary image J as follows: Ορίζουµε µια νέα δυαδική εικόνα J ως ακολούθως J(i, j) = '0' if I(i, j) T J(i, j) = '1' if I(i, j) < T A new binary image J is created from a gray-level image I. Μια νέα δυαδική εικόνα J δηµιουργείται από την µαυρόασπρη εικόνα I. I Threshold T J 2.9

10 Threshold Selection (Επιλογή Κατωφλίωσης) The quality of the binary image J obtained by thresholding I depends very heavily on the threshold T Η ποιότητα της δυαδικής εικόνας J που παίρνεται από κατωφλίωση της εικόνας I, εξαρτάτε παρά πολύ από το κατώφλι T Indeed it is instructive to observe the result of thresholding an image at many different levels in sequence. Πραγµατικά είναι πολύ χρήσιµο το να παρατηρούµε τα αποτελέσµατα κατωφλίωσης µιας εικόνας σε πολλά διαφορετικά επίπεδα σε σειρά. Different thresholds can produce different valuable abstractions of the image. ιαφορετικά κατώφλια µπορούν να δηµιουργήσουν ένα διαφορετικό σηµαντικό αποχωρισµός της εικόνας Some images do not produce any interesting results when thresholded by any T. Μερικές εικόνες δεν δίνουν σηµαντικά αποτέλεσµα όταν κατωφλιώνονται µε οποιοδήποτε Τ. So: How does one decide if thresholding is possible? Έτσι: Πως αποφασίζει κάποιος αν είναι πιθανή η κατωφλίωση; How does one decide on a threshold T? Πως αποφασίζει κάποιος για το κατώφλι Τ; 2.10

11 ΠΑΡΑ ΕΙΓΜΑ ΚΑΤΩΦΛΙΩΣΗΣ ΣΤΟ MATLAB I = imread( exampleim.tif ); b = im2bw(i,map,0.4); imshow(i,map); figure, imshow(b); 2.11

12 Gray-Level Image Histogram Ιστόγραµµα µαυρόασπρης εικόνας The histogram H I of image I is a plot or graph of the frequency of occurrence of each gray level in I. Το Ιστόγραµµα H I της εικόνας Ι είναι µια γραφική παράσταση κάθε πεδίου φωτεινότητας στην εικόνα Ι H I is a one-dimensional function with domain 0,..., K-1 H H I είναι µια µονοδιάστατη συνάρτηση µε πεδίο ορισµού 0,..., K-1 H I (k) = n if I contains exactly n occurrences of gray level k, for each k = 0,... K-1. H I (k) = n αν I περιέχει ακριβώς n φορές το επίπεδο φωτεινότητας k, για κάθε k = 0,... K

13 Histogram Appearance (Εµφάνιση Ιστογράµµατος) The appearance of a histogram suggests much about the image. Η εµφάνιση του ιστογράµµατος φανερώνει πολλά στοιχεία για την εικόνα H I (k) predominantly dark image 0 K-1 gray level k H I (k) predominantly light image 0 K-1 gray level k These could be histograms of underexposed and overexposed images, respectively. Αυτά µπορεί να είναι τα ιστογράµµατα από µια σκοτεινή και µια φανερή εικόνα, αντίστοιχα H I (k) well-distributed histogram 0 K-1 gray level k 2.13

14 This histogram may show better use of the gray-scale range. Αυτό το ιστόγραµµα δείχνει καλύτερη χρήση των πεδίων φωτεινότητας 2.14

15 Bimodal Histogram Ιστόγραµµα που περιέχει 2 περιοχές διαφορετικών κατανοµών Thresholding usually works best when there are dark objects on a light background Η κατωφλίωση συνήθως δουλεύει καλύτερα όταν υπάρχουν σκούρα αντικείµενα σε φωτεινό φόντο Or when there are light objects on a dark background Η όταν υπάρχουν φωτεινά αντικείµενα σε ένα σκοτεινό φόντο Images of this type tend to have histograms with multiple distinct peaks or modes in them Οι εικόνες αυτού του τύπου τείνουν να έχουν ιστογράµµατα µε πολλές διαφορετικές κορυφές ή µεθόδους If the peaks are well-separated, threshold selection can be easy. Αν οι κορυφές είναι καλά χωρισµένες, η επιλογή του κατωφλιού είναι εύκολη H I (k) bimodal histogram poorly separated 0 K-1 gray level k 2.15

16 H I (k) bimodal histogram well separated peaks 0 K-1 gray level k Set the threshold T somewhere between the peaks. It may be an interactive trial-anderror process. Καθορίζουµε το κατώφλι T κάπου µεταξύ των κορυφών. Μπορεί να είναι µια χρήση µεθόδων βελτίωσης 2.16

17 Threshold Selection from Histogram Επιλογή κατωφλιού από το Ιστόγραµµα Placing threshold T between modes may yield acceptable results. Τοποθετώντας το κατώφλι T µεταξύ µεθόδων µπορεί να οδηγήσει σε επιθυµητά αποτελέσµατα Exactly where in between can be difficult to determine. Ακριβώς που µεταξύ µπορεί να είναι δύσκολο να βρεθεί threshold T H I (k) threshold selection 0 K-1 gray level k An image histogram may contain multiple modes. Placing the threshold in different places will produce very different results. Ένα ιστόγραµµα εικόνας µπορεί να περιέχει πολλές µεθόδους. Τοποθετώντας το κατώφλι σε διαφορετικά σηµεία δηµιουργεί πολύ διαφορετικά αποτελέσµατα T? T? H I (k) multi-modal histogram 0 K-1 gray level k Histogram may be "flat," making threshold selection difficult Το ιστόγραµµα µπορεί να είναι επίπεδο κάνοντας την επιλογή κατωφλιού δύσκολη 2.17

18 H I (k) flat histogram 0 K-1 gray level k Thresholding DEMO 2.18

19 Discussion of Histogram Types Συζήτηση για τους Τύπους Ιστογράµµατος We'll return to the histogram later in the context of quantitative gray-level properties. Some general qualitative observations are worth making now. Θα επιστρέψουµε στο ιστόγραµµα µετά στο θέµα των ποσοτικών ιδιοτήτων πεδίων φωτεινότητας. Μερικές γενικές ποιοτικές παρατηρήσεις είναι αξιοσηµείωτες τώρα Bimodal histograms often imply objects and background of significantly different average brightnesses. Τα Ιστογράµµατα που περιέχουν 2 περιοχές διαφορετικών κατανοµών συχνά δείχνουν αντικείµενα σε φόντο µε σηµαντική διαφορά στην µέση φωτεινότητα Bimodal histograms are the easiest to threshold. Τα Ιστογράµµατα που περιέχουν 2 περιοχές διαφορετικών κατανοµών κατωφλιώνονται πολύ εύκολα The result of thresholding a bimodal histogram is (ideally) a simple binary image showing object/background separation Το αποτέλεσµα της κατωφλίωσης ενός ιστογράµµατος που περιέχουν 2 περιοχές διαφορετικών κατανοµών είναι (ιδανικά) µια απλή δυαδική εικόνα που δείχνει τον διαχωρισµό του αντικειµένου µε το φόντο Examples. Images of Παράδειγµα. Εικόνες από - Printed type Εκτυπωτή - Blood cells in solution Κύτταρα αίµατος σε διάλυµα - Machine parts on an assembly line Μηχανικά εργαλεία σε µια γραµµή συναρµολόγησης Multi-modal histograms often occur when the image contains different objects of different average brightnesses on a uniform background Τα ιστογράµµατα µε πολλές περιοχές διαφορετικών κατανοµών δηµιουργούνται συχνά όταν η εικόνα περιέχει διαφορετικά αντικείµενα από διαφορετικούς µέσους όρους φωτεινότητας σε ένα οµογενές φόντο 2.19

20 Flat or level histograms usually imply more complex images, containing detail, non-uniform background, etc. Τα επίπεδα ιστογράµµατα δηµιουργούνται συχνά όταν η εικόνα περιέχει διαφορετικά αντικείµενα µε διαφορετικούς µέσους όρους φωτεινότητας σε ένα οµοιογενές φόντο Thresholding rarely gives perfect results. Usually, some kind of region correction must be applied. Η κατωφλίωση σπάνια δίνει καλά αποτελέσµατα. Συνήθως, µερικοί τύποι από διορθώσεις µέρους της εικόνας πρέπει να χρησιµοποιηθούν We will study region correction techniques later in this module. Θα µελετήσουµε τεχνικές διόρθωσης µέρους της εικόνας αργότερα σε αυτό το κεφάλαιο 2.20

21 LOGICAL OPERATIONS ON BINARY IMAGES ΛΟΓΙΚΕΣ ΛΕΙΤΟΥΡΓΙΕΣ ΙΑ ΙΚΩΝ ΕΙΚΟΝΩΝ Assume that we have obtained binary images in some way. ΘΕΟΡΟΥΜΕ ΟΤΙ ΠΡΗΑΜΕ ΜΙΑ ΙΑ ΙΚΗ ΕΙΚΟΝΑ ΜΕ ΚΑΠΟΙΟ ΤΡΟΠΟ In these and other diagrams that do not use actual digital binary images, we are not showing the discretization into pixels. Σε αυτά και σε αλλά διαγράµµατα τα οποία δεν χρησιµοποιούν πραγµατικές ψηφιακές δυαδικές εικόνες, δεν δείχνουµε την ψηφιοποίηση τους σε στίγµατα However, since most images are of sufficient resolution that discretization effects are not noticeable, it does not matter. Ωστόσο, αφού οι περισσότερες εικόνες είναι ικανοποιητικής διακριτικής ικανότητας, ούτος ώστε τα αποτελέσµατα της ψηφιοποίησης να µην µπορούν να παρατηρηθούν, δεν έχει σηµασία 2.21

22 The Basic Logical Operations Οι βασικές λογικές λειτουργίες We will use only a few simple logical operations. ΘΑ ΧΡΕΙΣΙΜΟΠΟΙΗΣΟΥΜΕ ΜΕΡΙΚΕΣ ΑΠΛΕΣ ΛΟΓΙΚΕΣ ΠΡΑΞΕΙΣ Suppose that X 1,..., X n are binary variables. For example, pixels from one or more binary images. Υποθέτουµε ότι X 1,..., X n είναι δυαδικές µεταβλητές. Για παράδειγµα, τα στίγµατα από µια η περισσότερες δυαδικές εικόνες Here is the notation we will use: ΘΑ ΧΡΕΙΣΗΜΟΠΟΙΗΣΟΥΜΕ ΤΟΝ ΠΑΡΑΚΑΤΩ ΣΥΜΒΟΛΙΣΜΟ: Logical Complement: NOT(X 1 ) = complement of X 1 X 1 0 NOT( X 1 ) TRUTH TABLE Logical AND: AND(X 1, X 2 ) = X 1 X 2 X 1 X 2 X 1 X

23 TRUTH TABLE 2.23

24 Multi-Variable Logical AND: Πολλών-µεταβλητών λογικό AND: AND(X1, X 2,..., X n ) = X 1 X 2 X n-1 X n n = Xi i=1 = 1 if X1 = X2 = X3 = = Xn-1 = Xn = 1 (all 1's) = 0 otherwise Logical OR: OR(X1, X2) = X1 X2 X 1 X 2 X 1 X TRUTH TABLE Multi-Variable Logical OR: Πολλών-µεταβλητών λογικό OR: OR(X1, X2,..., Xn) = X1 X2 Xn-1 Xn n = Xi i=1 = 0 if X1 = X2 = X3 = = Xn-1 = Xn = 0 (all 0's) = 1 otherwise 2.24

25 Simple Boolean Algebra Properties Απλές ιδιότητες της Άλγεβρας Boolean NOT [NOT(X)] = X X1 X2 X3 = (X1 X2) X3 = X1 (X2 X3) (Associative Law) X1 X2 X3 = (X1 X2) X3 = X1 (X2 X3) (Associative Law) X1 X2 = X2 X1 (Commutative Law) X1 X2 = X2 X1 (Commutative Law) (X1 X2) X3 = (X1 X3) (X2 X3) (Distributive Law) (X1 X2) X3 = (X1 X3) (X2 X3) (Distributive Law) NOT(X1 X2) = NOT(X1) NOT(X2) (DeMorgan's Law) NOT(X1 X2) = NOT(X1) NOT(X2) (DeMorgan's Law) 2.25

26 Binary Majority (odd # of variables only) υαδική Πλειοψηφία (περιττός # µεταβλητών µόνο) X 1 X 2 X 3 MAJ(X 1, X 2, X 3 ) TRUTH TABLE Multi-Variable Binary Majority: Πολλών-µεταβλητών δυαδική πλειοψηφία MAJ(X 1, X 2,..., X n ) = 1 αν περισσότερα 1's από τα 0's = 0 αν περισσότερα 0's από τα 1's Comments Σχωλια Any binary operation can be created from 'NOT', 'AND', 'OR' - Boolean Algebra is an entire math discipline built on these. Κάθε δυαδική πράξη µπορεί να δηµιουργηθεί από τα 'NOT', 'AND', 'OR' Η Boolean Άλγεβρα είναι ένας ολοκληρωµένος κλάδος των µαθηµατικών However, we will restrict ourselves to using 'NOT', 'AND', 'OR', and 'MAJ' in a few simple applications. 2.26

27 Ωστόσο, θα περιορίσουµε τους εαυτούς µας στην χρήση 'AND', 'OR', και 'MAJ' σε µερικές απλές χρήσεις 2.27

28 Logical Operations on Images Λογικές λειτουργίες στις εικόνες Let I 1, I 2,..., I n be binary images. We define logical operations on images on a point-wise basis. Θέτουµε τις I 1, I 2,..., I n ως δυαδικές εικόνες. Θα ορίσουµε λογικές λειτουργίες στις εικόνες µε βάση απλά σηµεία The complement of an image: Το complement µιας εικόνας: J 1 = NOT( I 1 ) if J 1 (i, j) = NOT[ I 1 (i, j) ] for all (i, j) This reverses the contrast - it creates a binary negative: (DEMO) Αυτό αντιστρέφει την αντίθεση δηµιουργεί ένα δυαδικό αρνητικό The AND or intersection of two images: Το AND ή η τοµή δυο εικόνων J 2 = AND(I 1, I 2 ) = I 1 I 2 if J 2 (i, j) = AND[ I 1 (i, j), I 2 (i, j) ] for all (i, j) Shows the overlap of BLACK regions in I 1 and I 2. είχνει την επικάλυψη των ΜΑΥΡΩΝ περιοχών στις εικόνες I 1 και I

29 I 1 I 2 J = 2 I 1 I

30 The OR or union of two images: Το OR ή η ένωση δυο εικόνων J 3 = OR(I 1, I 2 ) = I 1 I 2 if J 3 (i, j) = OR[ I 1 (i, j), I 2 (i, j) ] for all (i, j) Shows the overlap of the WHITE regions in I 1 and I 2. είχνει την επικάλυψη των ΛΕΥΚΩΝ περιοχών των εικόνων I 1 and I 2. I 1 I 2 J = I 1 I 3 2 Comments (Σχολια) The usefulness of globally applying AND, OR and MAJ to images is very limited. Η χρησιµότητα της εφαρµογής των applying AND, OR και MAJ σε ολόκληρες τις εικόνες είναι πολύ περιορισµένη Later, we will find that AND, OR, and MAJ are very useful when applied to small, local image regions. Αργότερα, θα δούµε ότι τα applying AND, OR και MAJ είναι πολύ χρήσιµα όταν χρησιµοποιηθούν σε µικρές τοπικές περιοχές τις εικόνας There are exceptions... Υπάρχουν εξαιρέσεις 2.30

31 Example - An assembly-line image inspection system. Similar to many marketed by industry: Παράδειγµα Μια γραµµή-συναρµολόγησης ελεγχόµενη από σύστηµα εικόνας. Παρόµοιο µε πολλά συστήµατα που χρησιµοποιούνται στην βιοµηχανία acquired image I camera computer conveyer stored model image I model Objective: Numerically compare the stored image I model and the acquired image I. Σκοπός: Αριθµητική σύγκριση της αποθηκευµένης εικόνας I model και της εικόνας λήψης I. I model I 2.31

32 Observe that the object in I has been shifted very slightly. Παρατηρούµε ότι το αντικείµενο στην εικόνα I έχει µετακινηθεί πολύ λίγο 2.32

33 Logical AND: I model I The logical AND conveys the overlap. Το λογικό AND µας δίνει την επικάλυψη A measurement of the displacement is given by: Μια µέτρησης της µετακίνησης δίνεται από: XOR(I, Imodel) = OR{ AND[Imodel, NOT(I)], AND[NOT(Imodel), I ]} I model I NOT( ) NOT( I model ) I 2.33

34 XOR(I, Imodel) XOR shows where the displacement errors occur. Το XOR δείχνει που είναι το λάθος µετακίνησης To decide if there is a problem or flaw, the ratio or percentage Για να αποφασίσουµε αν υπάρχει πρόβληµα η ελάττωµα, η εκατοστιαία αναλογία PERCENT = [# black pixels in XOR(I, Imodel)] / [# black pixels in Imodel] may be compared to a pre-determined tolerance percentage P. µπορεί να συγκριθεί σε προσδιορισµένη ανεκτικότητα της εκατοστιαίας αναλογίας P If PERCENT > P, then the part may be flawed or incorrectly placed. Αν η εκατοστιαία αναλογία > P, τότε το εξάρτηµα µπορεί να είναι ελαττωµατικό η λανθασµένα τοποθετηµένο 2.34

35 ΧΡΩΜΑΤΙΣΜΟΣ ΜΕΡΩΝ BLOB COLORING A simple technique for region classification and correction Μια απλή τεχνική για ταξινόµηση περιοχής εικόνας και διόρθωση Motivation: Gray-level image thresholding usually produces an imperfect binary image: Κίνητρο: Η κατωφλίωση µαυρόασπρων εικόνων συνήθως δηµιουργεί µια ατελή δυαδική εικόνα - Extraneous blobs or holes due to noise ΑΣΧΕΤΑ ΜΕΡΗ Η ΟΠΕΣ ΛΟΓΟ ΘΟΡΥΒΟΥ - Extraneous blobs from thresholded objects of little interest Ασετα µέρη από κατωφλίωση αντικειµένων µικρού ενδιαφέροντος - Nonuniform object/background surface reflectances Μη-οµαλή ανάκλαση επιφάνειας αντικειµένου / φόντου typical thresholded image result It is usually desired to extract a small number of objects or even a single object by thresholding Είναι συνήθως επιθυµητό να περνούµε κάποιο µικρό αριθµό αντικειµένων η ακόµα ένα απλό αντικείµενο µε την κατωφλίωση Blob coloring is a very simple technique for listing all of the blobs or objects in a binary. Ο χρωµατισµός µερών είναι µια πολύ απλή τεχνική για καταγραφή όλων των µερών η αντικειµένων στην δυαδική εικόνα 2.35

36 Blob Coloring Algorithm ΑΛΓΟΡΙΘΜΟΣ ΧΡΩΜΑΤΙΣMΟΥ ΜΕΡΩΝ For binary image I, define a "region color" array R: Για την δυαδική εικόνα I, ορίζουµε ένα έγχρωµη περιοχή πίνακα R: R(i, j) = νούµερο περιοχής από στίγµατα I(i, j) Set R = 0 (all zeros) and k = 1 (k = region number counter) Θέτουµε R = 0 (όλα µηδέν) και k = 1 (k = µετρητής νούµερου περιοχής) While scanning the image left-to-right and top-to-bottom do Ενώ σαρώνουµε την εικόνα από αριστερά προς δεξιά και από πάνω προς τα κάτω κάνουµε if I(i, j) = 1 and I(i, j-1) = 0 and I(i-1, j) = 0 then set R(i, j) = k and k = k + 1; if I(i, j) = 1 and I(i, j-1) = 0 and I(i-1, j) = 1 then set R(i, j) = R(i-1, j); if I(i, j) = 1 and I(i, j-1) = 1 and I(i-1, j) = 0 then set R(i, j) = R(i, j-1); if I(i, j) = 1 and I(i, j-1) = 1 and I(i-1, j) = 1 then set R(i, j) = R(i-1, j); if R(i, j-1) R(i-1, j) then καταγράφουµε R(i, j-1) and R(i-1, j) σαν ισοδύναµα (ίδιο χρώµα) Distinct integers or "colors" k are assigned to each blob. ιαφορετική ακέραιοι η χρώµατα k δίνονται σε κάθε περιοχή 2.36

37 Counting the pixels in each blob (by color) is then simple. Μετρώντας τα στίγµατα σε κάθε περιοχή (ανά χρώµα) είναι τότε πολύ απλό 2.37

38 Example - Using blob coloring Παράδειγµα Χρησιµοποιώντας χρωµατισµό µερών blob coloring result blob counting result 312 "Color" of largest blob: 2 Χρώµα µεγαλύτερου µέρους: 2 Removing Minor Regions Αφαίρεση ασήµαντον περιοχών Let m = "color" of largest region Θέτουµε m = "χρώµα" της µεγαλύτερης περιοχής While scanning the image left-to-right and top-to-bottom do Ενώ σαρώνουµε την εικόνα από αριστερά προς δεξιά και από πάνω προς τα κάτω κάνουµε if I(i, j) = 1 and R(i, j) m then set I(i, j) = 0; 2.38

39 Example (Παράδειγµα) minor region removal The process is not complete! To obtain a cohesive, connected object, repeat the procedure on the WHITE pixels. Η διαδικασία δεν έχει τελειώσει ακόµα! Για να πάρουµε ένα συνεκτικό, συνδεδεµένο αντικείµενο επαναλαµβάνουµε την διαδικασία στα λευκά στίγµατα Complement the last result: Complement το τελευταίο αποτέλεσµα complement Then apply all the same steps: Τότε εφαρµόζουµε ξανά τα ίδια βήµατα: 2.39

40 blob counting "Color" of largest blob: 1 Χρώµα του µεγαλύτερου µέρους: 1 minor region removal complement Simple and effective, but doesn't "cure" everything. Απλό και αποτελεσµατικό, αλλά δεν τα διορθώνει όλα 2.40

41 BINARY MORPHOLOGY YΑ ΙΚΗ ΜΟΡΦΟΛΟΓΙΑ The most powerful class of binary image operators. Η πιο δυνατή τάξη από δυαδικές λειτουργίες εικόνων A general framework known as mathematical morphology Ένας γενικός σχεδιασµός γνωστός ως µαθηµατική µορφολογία morphology = shape Morphological operations affect the shapes of objects and regions in binary images. Οι µορφολογικές λειτουργίες επηρεάζουν την µορφή των αντικειµένων και περιοχών στις δυαδικές εικόνες All processing is done on a local basis - region or blob shapes are affected in a local manner. Όλη η επεξεργασία γίνεται σε τοπική βάση περιοχές η µορφές µερών επηρεάζονται µε τοπικό τρόπο Morphological operators Μορφολογικές λειτουργίες - Expand (dilate) objects Μεγέθυνση (διαστολή) αντικειµένων - Shrink (erode) objects Σµίκρυνσης (συστολή) αντικειµένων - Smooth object boundaries and eliminate small regions or holes Οµαλοποίηση ορίων αντικειµένων και περιορισµός µικρών περιοχών η οπών - Fill gaps and eliminate 'peninsulas Γέµισµα κενών και περιορισµός χερσονήσων All is accomplished using local logical operations Όλα κατορθώνονται χρησιµοποιώντας τοπικές λογικές λειτουργίες 2.41

42 Structuring Elements or Windows ΟΜΙΚΑ ΣΤΟΙΧΕΙΑ Η ΠΑΡΑΘΥΡΑ A structuring element is a geometric relationship between pixels. Some examples: Ένα δοµικό στοιχείο είναι µια γεωµετρική συσχέτιση µεταξύ στιγµάτων. Μερικά παραδείγµατα: Morphological operations are defined (conceptually) by moving a structuring element over the image to be modified, in such a way that it is centered over every image pixel at some point. Οι µορφολογικές λειτουργίες ορίζονται (γενική ιδέα) από την µετακίνηση ενός δοµικού στοιχείου στην εικόνα κάτω από επεξεργασία, µε τέτοιο τρόπο µε τον οποίο κεντράρεται πάνω σε όλα τα στίγµατα της εικόνας σε κάποια στιγµή Usually this is done row-by-row, column-by-column. Συνήθως αυτό γίνεται σειρά-προς-σειρά, στήλη-προς-στήλη When the structuring element is centered over a region of the image, a logical operation is performed on the pixels covered by the structuring element, yielding a binary output. Όταν το δοµικό στοιχείο κεντραριστεί πάνω σε ένα σηµείο της εικόνας, µια λογική λειτουργία εκτελείται στα στίγµατα που καλύπτει το δοµικό στοιχείο, οδηγώντας σε µια δυαδική έξοδο A structuring element is also often called a moving window. Το δοµικό στοιχείο συχνά αναφέρεται ως κινητό παράθυρο Usually structuring elements are defined to have (approximate) circular shapes - since it is desired that they interact the same way with an object even if the object is rotated. 2.42

43 Συνήθως τα δοµικά στοιχεία έχουν (περίπου) κυκλικά σχήµατα αφού είναι επιθυµητό ότι αντιδρούν µε τον ίδιο τρόπο µε ένα αντικείµενο ακόµα και αν το αντικείµενο περιστραφεί 2.43

44 Example - A structuring element moving over an image. Παράδειγµα Ένα δοµικό στοιχείο που κινείται πάνω στην εικόνα 2.44

45 2.45

46 Formal Definition of Windowing ΕΠΙΣΗΜΟΣ ΟΡΙΣΜΟΣ ΠΑΡΑΘΥΡΩΝ Also used later for gray-level image and video processing. Χρησιµοποιείται επίσης αργότερα για επεξεργασία µαυρόασπρων εικόνων και βίντεο A window is a geometric relationship that creates a series of miniature images as it is passed over the image, row-by-row, column-by-column (sequential implemntation). Ένα παράθυρο είναι µια γεωµετρική συσχέτιση η οποία δηµιουργεί µια σειρά από µικρογραφικές εικόνες όπως περνά πάνω από την εικόνα σειράπρος-σειρά, στήλη-προς-στήλη (διαδοχικής κατασκευής) In a parallel implementation, a large number of windows will cover the image simultaneously. Στην παράλληλη εφαρµογή ένας µεγάλος αριθµός από παράθυρα θα καλύπτουν την εικόνα σύγχρονος Some typical windows: Μερικά τυπικά παράθυρα: ROW(3) ROW(5) COL(3) COL(5) 1-D windows ROW(2M+1) and COL(2M+1). These operate on rows and columns only. ΑΥΤΑ ΕΡΓΑΖΟΝΤΑ ΣΕ ΣΕΙΡΕΣ ΚΑΙ ΣΤΗΛΕΣ ΜΟΝΟ A window will always cover an odd number of pixels 2M+1: pairs of adjacent pixels, plus the center pixel. 2.46

47 Ένα παράθυρο θα καλύπτει πάντα ένα περιττό αριθµό στιγµάτων 2M+1: ζεύγη από διπλανά στίγµατα, συν το κεντρικό στίγµα Filtering operations are defined symmetrically this way. Οι λειτουργίες φίλτρου ορίζονται συµµετρικά µε αυτό τον τρόπο 2.47

48 Two-Dimensional Windows Ι ΙΑΣΤΑΤΑ ΠΑΡΑΘΥΡΑ SQUARE(9) CROSS(5) SQUARE(25) CIRC(13) CROSS(9) 2-D windows SQUARE(2M+1), CROSS(2M+1), CIRC(2M+1) Again, 2M+1 denotes the odd number of pixels covered by the window Πάλι, 2M+1 δείχνει τον περιττό αριθµό στιγµάτων που καλύπτονται από το παράθυρο Can generalize to arbitrary-size windows covering 2M+1 pixels. Μπορεί να γενικοποιηθεί σε παράθυρο οποιοδήποτε-µεγέθους που καλύπτει 2M+1 στίγµατα These are the most common window shapes. ΑΥΤΑ ΕΙΝΑΙ ΤΑ ΠΙΟ ΚΟΙΝΑ ΣΧΗΜΑΤΑ ΠΑΡΑΘΥΡΩΝ 2.48

49 Window Notation Συµβολισµός Παραθύρων A window B is: ΕΝΑ ΠΑΡΑΘΥΡΟ B ΕΙΝΑΙ: - A way of collecting local image intensities. Ένας τρόπος συγκέντρωσης τοπικών φωτεινοτήτων εικόνας - A set of coordinate shifts Bi = (mi, ni) centered around (0, 0): Ένα σύνολο από µετακινήσεις συντεταγµένων Bi = (mi, ni) µε κέντρο (0, 0): B = {B1,..., B2M+1} = {(m1, n1),..., (m2m+1, n2m+1)} Examples - 1-D windows B Παραδείγµατα 1- παράθυρα B B = ROW(2M+1) = {(0, -M),..., (0, M)} = {(0, n); n = -M,..., M} B = ROW(3) = {(0, -1), (0, 0), (0, 1)} B = COL(2M+1) = {(-M, 0),..., (M, 0)} = {(m, 0); m = -M,..., M} B = COL(3) = {(-1, 0), (0, 0), (1, 0)} 2.49

50 Examples - 2-D windows B ΠΑΡΑ ΕΙΓΜΑΤΑ 2- ΠΑΡΑΘΥΡΑ Β B = SQUARE (9) = {(-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 0), (0, 1), (1, -1), (1, 0), (1, 1)} B = CROSS(2M+1) = ROW(2M+1) COL(2M+1) B = CROSS(5) = { (-1, 0), (0, -1), (0, 0), (0, 1), (1, 0) } 2.50

51 Windowed Set ΣΥΝΟΛΟ ΠΑΡΑΘΥΡΩΝ Given an image I and a window B, define the windowed set at image coordinate (i, j) by ίδεται µια εικόνα Ι και ένα παράθυρο Β, ορίζουµε το σύνολο παραθύρων στις συντεταγµένες εικόνας (i, j) από B I(i, j) = {I(i-m, j-n); (m, n) B} which is the set of image pixels covered by the window when it is centered at coordinate (i, j). το οποίο είναι το σύνολο των στιγµάτων εικόνας που καλύπτεται από το παράθυρο όταν έχει κέντρο στις συντεταγµένες (i, j). Examples (Παράδειγµα) B = ROW(3): B I(i, j) = {I(i, j-1), I(i, j), I(i, j+1)} B = COL(3): B I(i, j) = {I(i-1, j), I(i, j), I(i+1, j)} B = SQUARE (9): B I(i, j) = {I(i-1, j-1), I(i-1, j), I(i-1, j+1), I(i, j-1), I(i, j), I(i, j+1), I(i+1, j-1), I(i+1, j), I(i+1, j+1)} B = CROSS(5): B I(i, j) = { I(i-1, j), I(i, j-1), I(i, j), I(i, j+1), I(i+1, j) } 2.51

52 General Binary Filter ΓΕΝΙΚΑ ΙΑ ΙΚΑ ΦΙΛΤΡΑ Denote binary operation G on the windowed set B I(i, j) by είχνουµε τις δυαδικές λειτουργίες G στο σύνολο παραθύρου B I(i, j) από J(i, j) = G{B I(i, j)} = G{I(i-m, j-n); (m, n) B} Perform this at every pixel in the image, giving filtered image Εφαρµόζουµε αυτή σε κάθε στίγµα της εικόνας, δίνει µια φιλτραρισµένη εικόνα J = G[I, B] = [J(i, j); 0 i, j N-1] Edge-of-Image Processing ΕΠΕΞΕΡΓΑΣΙΑ ΣΤΑ ΟΡΙΑΣ ΜΙΑΣ ΕΙΚΟΝΑΣ Window overlapping "empty space" : Το παράθυρο καλύπτει κενό χώρο Convention: fill the "empty" window slots by the nearest image pixel. This is called replication. Εθιµοτυπία: γεµίζουµε τους κενούς χώρους του παραθύρου µε την τιµή του κοντινότερου στίγµατος εικόνας. Αυτό λέγεται επανάληψη 2.52

53 Dilation, Erosion and Median (Majority) ιαστολή, Συστολή και Μεσαίος (Πλειοψηφία) DILATION: Given a window B and a binary image I: ιαστολή: ίνεται ένα παράθυρο Β και µια δυαδική εικόνα Ι: if J1 = DILATE(I, B) J1(i, j) = OR{B I(i, j)} = OR{I(i-m, j-n); (m, n) B} EROSION: Given a window B and a binary image I: Συστολή: ίνεται ένα παράθυρο Β και µια δυαδική εικόνα Ι: if J2 = ERODE(I, B) J2(i, j) = AND{B I(i, j)} = AND{I(i-m, j-n); (m, n) B} MEDIAN: Given a window B and a binary image I: Μεσαίος: ίνεται ένα παράθυρο Β και µια δυαδική εικόνα Ι: if J3 = MEDIAN(I, B) J3(i, j) = MAJ{B I(i, j)} = MAJ{I(i-m, j-n); (m, n) B} 2.53

54 Dilation - So-called because this operation increases the size of BLACK objects in a binary image. ιαστολή Καλείται έτσι επειδή αυτή η λειτουργία µεγαλώνει το µέγεθος των ΜΑΥΡΩΝ αντικειµένων στην δυαδική εικόνα Τοπικός Υπολογισµός: J = DILATE(I, B) OR I J B = Global Effect: (Ολικό Αποτέλεσµα) 2.54

55 It is useful to think of the structuring element as rolling along all of the boundaries of all BLACK objects in the image. The center point of the structuring element traces out a set of paths. That form the boundaries of the dilated image. DEMO ΠΑΡΑ ΕΙΓΜΑ ΙΑΣΤΟΛΗΣ ΣΤΟ MATLAB I = imread( exampleim.tif ); S = ones(3,1); I1 = dilate(i,s); imshow(i); figure, imshow(i1,); 2.55

56 Erosion - So-called because this operation decreases the size of BLACK objects in a binary image. Συστολη Καλείται έτσι επειδή αυτή η λειτουργία µειώνει το µέγεθος των µαύρων αντικειµένων στην δυαδική εικόνα Τοπικός Υπολογισµός: J = ERODE(I, B) AND I J B = Global Effect: (Ολικό Αποτέλεσµα) 2.56

57 It is useful to think of the structuring element as rolling inside of the boundaries of all BLACK objects in the image. The center point of the structuring element traces out a set of paths. That form the boundaries of the eroded image. DEMO ΠΑΡΑ ΕΙΓΜΑ ΣΥΣΤΟΛΗΣ ΣΤΟ MATLAB I = imread( exampleim.tif ); S = ones(6,2); I1 = erode(i,s); imshow(i); figure, imshow(i1,); 2.57

58 Qualitative Properties of Dilation ΠΟΙΟΤΙΚΕΣ Ι ΙΟΤΗΤΕΣ ΤΗΣ ΙΑΣΤΟΛΗΣ Dilation removes object holes of too-small size: Η διαστολή αφαιρεί τις µικρού µεγέθους οπές του αντικειµένου: DILATE Dilation also removes gaps or bays of too-narrow width: Η διαστολή επίσης αφαιρεί στενά κενά η κόλπους DILATE Dilation of the BLACK part of an image is the same as erosion of the WHITE part! Η διαστολή του ΜΑΥΡΟΥ µέρους της εικόνας είναι το ίδιο µε την συστολή του ΛΕΥΚΟΥ µέρους! 2.58

59 NOT DILATE ERODE NOT 2.59

60 Qualitative Properties of Erosion ΠΟΙΟΤΙΚΕΣ Ι ΙΟΤΗΤΕΣ ΣΥΣΤΟΛΗΣ Erosion removes objects of too-small size: Η συστολή αφαιρεί αντικείµενα πολύ µικρού µεγέθους ERODE Erosion also removes peninsulas of too-narrow width: Η συστολή αφαιρεί επίσης πολύ στενά ακρωτήρια : ERODE Erosion of the BLACK part of an image is the same as dilation of the WHITE part! Η συστολή του ΜΑΥΡΟΥ µέρους της εικόνας είναι το ίδιο µε την διαστολή του ΛΕΥΚΟΥ µέρους! NOT ERODE DILATE NOT 2.60

61 Relating Erosion and Dilation Συσχέτισης Συστολής και ιαστολής Erosion and dilation are actually the same operation - they are just dual operations with respect to complementation Η συστολή και η διαστολή είναι ακριβώς η ίδια λειτουργία έχουν ακριβώς αντίθετες σχέσεις Erosion and dilation are only approximate inverses of one another Η συστολή και η διαστολή είναι αντίθετες κατά προσέγγιση η µια της άλλης Dilating an eroded image only rarely yields the original image. In particular, dilation cannot Η διαστολή µιας ήδη υπό συστολή εικόνα πολύ σπάνια οδηγεί στην αρχική εικόνα. Κατ ακρίβεια η διαστολή δεν µπορεί να - Ξαναδηµιουργήσει τις χερσονήσους που αφαίρεσε η συστολή - Recreate small objects eliminated by erosion Ξαναδηµιουργεί µικρά αντικείµενα που αφαίρεσε η συστολή Eroding a dilated image only rarely yields the original image. In particular, erosion cannot Η συστολή µιας ήδη υπό διαστολή εικόνας πολύ σπάνια οδηγεί στην αρχική εικόνα. Κατ ακρίβεια, η συστολή δεν µπορεί να - Unfill holes filled by dilation Αδειάσει οπές που γέµισαν από την διαστολή - Recreate gaps or bays filled by dilation Ξαναδηµιουργεί κενά η κόλπους που γέµισαν από την διαστολή We will return to the concepts of erosion and dilation shortly. Θα ξαναγυρίσουµε στο αντικείµενο της συστολής και διαστολής σύντοµα 2.61

62 Median - Actually majority. A special case of the gray-level median filter. Possesses qualitative attributes of both dilation and erosion, but does not generally change the size of objects or background Μεσαίος Κατ ακρίβεια πλειοψηφία. Μια ειδική περίπτωση του µεσαίου φίλτρου επιπέδων φωτεινότητας. Επεξεργάζεται ποιοτικές ιδιότητες και των δυο, της διαστολής και της συστολής, αλλά γενικά δεν αλλάζει το µέγεθος του αντικειµένου η του φόντου Τοπικός Υπολογισµός: J = MEDIAN(I, B) A C MAJ B I B = J The median removed the small object A and the small hole hole B, but did not change the boundary (size) of the larger region C. Το φίλτρο µεσαίου αφαίρεσε το µικρό αντικείµενο Α και την µικρή οπή Β, αλλά δεν άλλαξε το όριο (µέγεθος) της µεγαλύτερης περιοχής C DEMO 2.62

63 Qualitative Properties of Median Ποιοτικές Ιδιότητες του Μεσαίου Median removes both objects and holes of too-small size, as well as both gaps (bays) and peninsulas of too-narrow width. Το φίλτρο µεσαίου αφαιρεί και αντικείµενα και οπές πολύ µικρού µεγέθους, επίσης και κενά (κόλπους) και χερσονήσους πολύ στενές. MEDIAN MEDIAN Note that median does not generally change the size of objects (although it does alter them) Σηµειώστε ότι το φίλτρο µεσαίου γενικά δεν αλλάζει το µέγεθος των αντικειµένων (παρόλο του ότι αλλάζει αυτά) Median is its own dual, since Το φίλτρο µεσαίου είναι η αντίθετη λειτουργία του εαυτού του, αφού MEDIAN [ NOT(I) ] = NOT [ MEDIAN(I) ] Thus, the median is a shape smoother. It is a filter. Έτσι, το φίλτρο µεσαίου απαλύνει µορφές. Είναι φίλτρο We can define other shape smoothers as well. Μπορούµε επίσης να ορίσουµε και άλλους µηχανισµούς λειάνσεως µορφής 2.63

64 OPENing and CLOSing Άνοιγµα και Κλείσιµο We can define new morphological operations by performing the basic ones in sequence. Μπορούµε να ορίσουµε νέες µορφολογικές λειτουργίες ως να εκτελέσουµε τις βασικές λειτουργίες σε σειρά Given an image I and window B, define In other words, Με άλλες λέξεις, ίνεται µια εικόνα Ι και ένα παράθυρο Β, ορίζουµε OPEN(I, B) = DILATE [ERODE(I, B), B] CLOSE(I, B) = ERODE [DILATE(I, B), B] OPEN = erosion (by B) followed by dilation (by B) OPEN = συστολή (µε Β) που ακολουθείται από διαστολή (µε Β) CLOSE = dilation (by B) followed by erosion (by B) CLOSE = διαστολή (µε Β) που ακολουθείται από συστολή (µε Β) OPEN and CLOSE are very similar to MEDIAN: Το άνοιγµα και το κλείσιµο είναι πολύ παρόµοια µε το φίλτρο µεσαίου: - OPEN removes too-small objects/fingers (more effectively than MEDIAN), but not holes, gaps, or bays. Το άνοιγµα αφαιρεί πολύ-µικρά αντικείµενα / δάκτυλα (πιο αποτελεσµατικά από το φίλτρο µεσαίου), αλλά όχι οπές, κενά, η κόλπους. - CLOSE removes too-small holes/gaps (more effectively than MEDIAN) but not objects or peninsulas Το κλείσιµο αφαιρεί πολύ-µικρές οπές / κενά (πιο αποτελεσµατικά από το φίλτρο µεσαίου) αλλά όχι αντικείµενα η χερσονήσους - OPEN and CLOSE generally do not affect object size. Το άνοιγµα και το κλείσιµο γενικά δεν επηρεάζουν το µέγεθος του αντικειµένου OPEN and CLOSE are used when too-small BLACK and WHITE objects (respectively) are to be removed. Το άνοιγµα και το κλείσιµο χρησιµοποιούνται όταν πολύ µικρά ΜΑΥΡΑ και ΛΕΥΚΑ αντικείµενα (αντίστοιχα) θα αφαιρεθούν Thus OPEN and CLOSE are more specialized smoothers. Έτσι το άνοιγµα και το κλείσιµο είναι πιο ειδικά φίλτρα απάλυνσης 2.64

65 DEMO ΠΑΡΑ ΕΙΓΜΑ ΑΝΟΙΓΜΑΤΟΣ ΣΤΟ MATLAB I = imread( exampleim.tif ); I1 = bwmorph(i, open ); imshow(i); figure, imshow(i1,); 2.65

66 Examples (Παράδειγµα) OPEN MEDIAN CLOSE 2.66

67 Open-Close and Close-Open Άνοιγµα-Κλείσιµο και Κλείσιµο-Άνοιγµα Very effective smoothers can be obtained by sequencing the OPEN and CLOSE operators: Πολύ αποτελεσµατικοί απαλυντές µπορούν να παρθούν µε την χρησιµοποιήσει του Ανοίγµατος και του Κλεισίµατος σε σειρά For an image I and structuring element B, define Για µια εικόνα Ι και δοµικό στοιχείο Β, ορίζουµε OPEN-CLOS(I, B) = OPEN [CLOSE (I, B), B] CLOS-OPEN(I, B) = CLOSE [OPEN (I, B), B] These operations are quite similar (not mathematically identical). Αυτές οι λειτουργίες είναι σχετικά όµοιες (όχι µαθηµατικά ταυτόσηµες) Both remove too-small structures without affecting size much. Και οι δυο αφαιρούν πολύ µικρά στοιχεία χωρίς να επηρεάζουν πολύ το µέγεθος Both are similar to the median filter except they smooth more (for a given structuring element B). Και οι δυο είναι όµοιες του φίλτρου µεσαίου αλλά απαλύνουν περισσότερο (για ένα δεδοµένο δοµικό στοιχείο Β) One notable difference between OPEN-CLOS and CLOS-OPEN: Μια αξιοσηµείωτη διαφορά µεταξύ Ανοίγµατος-Κλεισίµατος και Κλεισιµατος- Ανοίγµατος: - OPEN-CLOS tends to link neighboring objects together Το OPEN-CLOS τείνει να ενώσει γειτονικά αντικείµενα µεταξύ τους - CLOS-OPEN tends to link neighboring holes together Το CLOS-OPEN τείνει να ενώσει γειτονικές οπές µεταξύ τους DEMO 2.67

68 Examples (Παράδειγµα) CLOS-OPEN OPEN-CLOS CLOS-OPEN OPEN-CLOS 2.68

69 Skeletonization (Σκελετοί) A way of obtaining an image's medial axis or skeleton. Ένας τρόπος για να πάρουµε τον µεσαίο άξονα η σκελετό µιας εικόνας Given an image I0 and window B, the skeleton is SKEL(I0, B). Obtaining the skeleton requires a fairly complex iteration: ίνεται µια εικόνα I0 και παράθυρο B, ο σκελετός είναι SKEL(I0, B). Η λήψη του σκελετού απαιτεί µια αρκετά σύνθετη επανάληψη. Define (Ορίσουµε) In = ERODE [ ERODE [ERODE(I0, B), B], B ] (n consecutive EROSIONS of I0 by B) (n διαδοχικές ΣΥΣΤΟΛΕΣ της I0 µε το B) N = max { n: In φ} φ = empty set (the largest number of erosions before In "disappears") (Ο µεγαλύτερος αριθµός συστολών πριν την εξαφάνιση της In) Sn = In NOT[OPEN(In, B)] Then (Τότε) SKEL(I0, B) = S1 S2 SN The result is a skeleton, or a medial axis transform, or a prairie-fire transform. Το αποτέλεσµα είναι ο Σκελετός, ή η συνάρτηση µεσαίου άξονα, η συνάρτηση φωτιάς λιβαδιού 2.69

70 Example (Παράδειγµα) Image (Εικόνα) I0: Structuring Element ( οµικό στοιχείο) B: SKEL(I0, B): 2.70

71 The Steps (Τα βήµατα) In NOT[OPEN(In, B)] Sn 2.71

72 2.72 SKEL(I0, B)

73 Example (Παράδειγµα) binary image (δυαδική εικόνα) DEMO skeleton (of background) σκελετός (του φόντου) 2.73

74 APPLICATION EXAMPLE ΠΑΡΑ ΕΙΓΜΑ ΕΦΑΡΜΟΓΗΣ Simple Task: Measuring Cell Area Απλό έργο: Μέτρηση εµβαδού κύτταρων Simple processing steps: Απλά βήµατα επεξεργασίας: (i) Find general cell region by simple thresholding Εύρεση γενικών περιοχών κύτταρων από απλή κατωφλίωση (ii) Apply region correction techniques: Εφαρµογή τεχνικών διόρθωσης εφαρµογής: - Blob coloring (Χρωµατισµός µερών) - Minor region removal (Αφαίρεση ασήµαντων περιοχών) - CLOS-OPEN (Κλείσιµο-Άνοιγµα) (iii) Display cell boundary for operator verification ΑΠΕΙΚΟΝΙΣΗΣ ΟΡΙΩΝ ΚΥΤΤΑΡΟΥ ΓΙΑ ΕΠΑΛΗΘΕΥΣΗ ΛΕΙΤΟΥΡΓΙΑΣ (iv) Compute image cell area by counting pixels ΥΠΟΛΟΓΙΣΜΟΣ ΕΜΒΑ ΟΥ ΚΥΤΤΑΡΩΝ ΣΤΗΝ ΕΙΚΟΝΑ ΜΕ ΤΗΝ ΜΕΤΡΗΣΗ ΣΤΙΓΜΑΤΩΝ (v) Compute actual cell area using perspective projection ΥΠΟΛΟΓΙΣΜΟΣ ΠΡΑΓΜΑΤΙΚΟΥ ΕΜΒΑ ΟΥ ΧΡΕΙΣΙΜΟΠΟΙΩΝΤΑΣ ΠΡΟΒΟΛΗ 2.74

75 Comments (Σχολια) Previous manual measurement techniques required > 1 hour per cell image to analyze Η προηγούµενη χειροποίητη τεχνική µέτρησης χρειάζεται > 1 ώρα για ανάλυση κάθε κύτταρου της εικόνας Algorithm runs in less than a second. Has been applied to > 50,000 cell images over the last several years Ο αλγόριθµος τρέχει σε λιγότερο από ένα δευτερόλεπτο. Χρησιµοποιήθηκε σε > 50,000 εικόνες κύτταρων τα προηγούµενα χρόνια Published in CRC Press s Image Analysis in Biology as the standard for "Automated Area Measurement. ηµοσιεύτηκε στο CRC Press s Image Analysis in Biology as the standard for "Automated Area Measurement. Examples (Παραδείγµατα) Click here for a look at early microscopy Πατήστε εδώ δια να δείτε πως ήταν τα παλιά µικροσκόπια 2.75

76 RUN-LENGTH CODING ΚΩ ΙΚΟΠΟΙΗΣΗ ΜΗΚΟΥΣ ΙΑ ΡΟΜΩΝ The number of bits required to store an N x N binary image is N 2 Ο αριθµός των bits που χρειάζονται για την αποθήκευση µιας N x N δυαδική εικόνα είναι N 2 This can be significantly reduced in many cases. Αυτό µπορεί να µειωθεί σηµαντικά σε πολλές περιπτώσεις Run-length coding works well if the WHITE and BLACK regions are generally not small. Η κωδικοποίηση µήκους διαδρόµων εργάζεται καλά όταν οι ΛΕΥΚΕΣ και ΜΑΥΡΕΣ περιοχές δεν είναι γενικά µικρές How Run-Length Coding Works: Πως δουλευει η κωδικοποιηση µηκους διαδροµων Binary images are stored (or transmitted) on a line-by-line (row-by-row) basis Οι δυαδικές εικόνες αποθηκεύονται (η µεταφέρονται) σε βάση γραµµή-προςγραµµή (σειρά-προς-σειρά) For each image row numbered m: Για κάθε γραµµή εικόνας που αριθµείται µε m: (1) Store the first pixel value ('0' or '1') in row m as a reference Αποθηκεύουµε την τιµή του πρώτου στίγµατος ('0' η '1') στην σειρά m για αναφορά (2) Set run counter c = 1 Θέτουµε µετρητή c = 1 (3) For each pixel in the row: Για κάθε στίγµα στην εικόνα: - Examine the next pixel to the right Εξετάζουµε το επόµενο στίγµα στα δεξιά - If same as current pixel, set c = c

77 Αν είναι το ίδιο µε το τρέχον στίγµα, θέτουµε c = c If different from current pixel, store c and set c = 1 Αν είναι διαφορετικό µε το τρέχον στίγµα, αποθηκεύουµε το c και θέτουµε c = 1 - Continue until end of row is reached Συνεχίζουµε µέχρι να φτάσουµε το τέλος της γραµµής Each run-length is stored using b bits. Κάθε µήκος διαδρόµων αποθηκεύεται χρησιµοποιώντας b bits. Example (Παράδειγµα) what's stored: '1' row m 2.77

78 Comments on Run-Length Coding Σχόλια για την κωδικοποίηση µήκους διαδρόµων Can yield excellent lossless compressions on some images. Μπορεί να δώσει πολύ καλή συµπίεση χωρίς απώλειες πληροφοριών σε µερικές εικόνες This will happen if the image contains lots of runs of 1's and 0's. Αυτό θα συµβεί αν η εικόνα περιέχει πολλές διαδροµές του 1's και 0's. If the image contains only very short runs, then run-length coding can actually increase the required storage. Αν η εικόνα περιέχει µόνο πολύ µικρές διαδροµές, τότε ο κώδικας µήκους διαδρόµων µπορεί να µεγαλώσει τον χώρο αποθήκευσης Example (worst case) Παράδειγµα (χειρότερη περίπτωση) what's stored: '1' row m In this worst-case example the storage increases b-fold! Σε αυτή την χειρότερη περίπτωση η αποθήκευση πολλαπλασιάζεται µε τον αριθµό b. Rule of thumb: the average run-length L should satisfy: Κανόνας: Ο µέσος όρος µήκους διαδρόµων L πρέπει να ικανοποιεί την σχέση L > b. 2.78

79 CONTOUR REPRESENTATION AND CHAIN CODING ΑΝΤΙΠΡΟΣΩΠΕΥΣΗ ΠΕΡΙΓΡΑΜΜΑΤΟΣ ΚΑΙ ΚΩ ΙΚΕΣ ΑΛΥΣΙ ΑΣ We can distinguish between two general types of binary image: region images and contour images. Μπορούµε να ξεχωρίσουµε δυο γενικούς τύπους διάδικων εικόνων: εικόνες περιοχών και εικόνες περιγράµµατος region image contour image We will require contour images to be special: Θα θεωρήσουµε τις εικόνες περιγράµµατος ξεχωριστά Each BLACK pixel in a contour image must have at most two BLACK 8-neighbors Κάθε ΜΑΥΡΟ στίγµα στην εικόνα περιγράµµατος πρέπει να έχει το πολύ δυο ΜΑΥΡΑ από τα 8-γειτονικα στίγµατα a BLACK pixel and its 8-neighbors ένα ΜΑΥΡΟ στίγµα και οι 8-γειτονες 2.79

80 Contour images are composed only of single-pixel width contours (straight or curved) and single points. Οι εικόνες περιγράµµατος περιέχουν µόνο ενός στίγµατος πάχους περιγράµµατα (ευθείες η καµπύλες) και απλού στίγµατος σηµεία 2.80

81 Chain Code (Κώδικας αλυσίδας) The chain code is a highly efficient method for coding contours Ο κώδικας αλυσίδας είναι µια µέθοδος υψηλής ικανότητας κωδικοποίησης περιγράµµατος Observe that if the initial (i, j) coordinate of an 8-connected contour is known, then the rest of the contour can be coded by giving the directions along which the contour propagates Παρατηρείστε ότι αν οι αρχικές (i, j) συντεταγµένες κάποιου 8-συνδεδεµενου περιγράµµατος είναι γνωστές, τότε τα υπόλοιπα στοιχεία του περιγράµµατος µπορούν να κωδικοποιηθούν δίνοντας την κατεύθυνση στην οποία το περίγραµµα διαδίδεται contour initial point and directions We use the following 8-neighbor direction codes: Χρησιµοποιούµε τους ακόλουθους κώδικες 8-συνδεσης κατεύθυνσης: Since the numbers 0, 1, 2, 3, 4, 5, 6, 7 can be coded by their 3-bit binary equivalents: Αφού οι αριθµοί, 1, 2, 3, 4, 5, 6, 7 µπορούν να κωδικοποιηθούν µε τα 3-bit δυαδικά ισοδύναµα τους: 2.81

82 000, 001, 010, 011, 100, 101, 110, 111 the location of each point on the contour after the initial point can be coded by 3 bits. Η τοποθεσία κάθε σηµείου στο περίγραµµα µετά το αρχικό σηµείο µπορεί να κωδικοποιηθεί µε 3 bits. 2.82

83 Example (Παράδειγµα) i 0 = initial point j 0 Its chain code: (after recording the initial coordinate (i0, j0) Ο κώδικας αλυσίδας του (Μετά την καταγραφή των αρχικών συντεταγµένων (i0, j0)) 1, 0, 1, 1, 1, 1, 3, 3, 3, 4, 4, 5, 4 = 001, 000, 001, 001, 001, 001, 011, 011, 011, 100, 100, 101, 100 The compression obtained can be quite significant: coding the contour by M-bit coordinates (M = 9 for 512 x 512 images) requires 6 times as much storage Η συµπίεση που έχουµε είναι κάπως σηµαντική: κωδικοποίηση του περιγράµµατος από M-bit συντεταγµένες coordinates (M = 9 για 512 x 512 εικόνες) χρειάζεται 6 φορές την αρχική µνήµη The technique is effective in many computer vision and pattern recognition applications, e.g. character recognition Η τεχνική αυτή είναι αποτελεσµατική σε πολλές εφαρµογές τεχνίτης όρασης και ανάγνωσης προτύπων π.χ. ανάγνωση χαρακτήρων Comment: for closed contours, the initial coordinate can be chosen arbitrarily. If the contour is open, then it is usually an end point (one 8-neighbor). 2.83

84 Σχόλια: για κλειστά περιγράµµατα, η αρχικές συντεταγµένες µπορούν να επιλεχθούν οπουδήποτε. Αν το περίγραµµα είναι κλειστό, τότε είναι ένα τελικό σηµείο (ένα γείτονα 8-συνδεσης) 2.84

85 EXERCISES (Ασκησεις) 1. Name three applications where binary images may arise. Ονοµαστέ τρεις εφαρµογές από τις οποίες µια δυαδική εικόνα µπορεί να παραχθεί 2. Describe the problems that can arise when using simple thresholding, leading to the need for region correction techniques such as blob coloring and morphology. Εξηγείστε τα προβλήµατα τα οποία δηµιουργούνται όταν χρησιµοποιούµε απλή κατωφλίωση, οδηγώντας στην ανάγκη για τεχνικές διορθώσεις περιοχών όπως χρωµατισµό µερών και µορφολογία 3. Give two examples of images that will have bimodal histograms. ώστε δυο παραδείγµατα εικόνων οι οποίες θα έχουν ιστόγραµµα περιοχών που περιέχει δυο περιοχές διαφορετικών κατανοµών 4. Give two examples of images that will have trimodal histograms. ώστε δυο παραδείγµατα εικόνων οι οποίες θα έχουν ιστόγραµµα περιοχών που περιέχει τρεις περιοχές διαφορετικών κατανοµών 2.85

86 5. What kind of image typically has a flat histogram? Τι είδους εικόνων τυπικά έχει ισοσταθµισµένο ιστόγραµµα; 6. Demonstrate the following properties of AND, OR, and NOT using truth tables: είξτε τις ακόλουθες ιδιότητες του AND, OR, και NOT χρησιµοποιώντας πίνακες αλήθειας NOT(X1 X2) = NOT(X1) NOT(X2) NOT(X1 X2) = NOT(X1) NOT(X2) (X1 X2) X3 = (X1 X3) (X2 X3) (X1 X2) X3 = (X1 X3) (X2 X3) 2.86

87 7. Compute the binary majority operator for each of the following binary images (or pieces of binary images): Υπολογίστε την λειτουργία δυαδικής πλειοψηφίας για καθ ένα από τις ακόλουθες δυαδικές εικόνες (η κοµµάτια των δυαδικών εικόνων) MAJ = MAJ = MAJ = MAJ = MAJ = MAJ = MAJ = MAJ = 8. Consider the contour image shown: Θεωρείσθε την ακόλουθη εικόνα περιγράµµατος: 2 1 (a) Compute the chain code for the contour using 1 as the initial point in the chain. Give the chain code in both integer and in binary form. 2.87

88 Υπολογίστε τον κώδικα αλυσίδας για το περίγραµµα χρησιµοποιώντας 1 σαν το αρχικό σηµείο της αλυσίδας. ώστε τον κώδικα αλυσίδας σε ακέραια και δυαδική µορφή (b) Compute the chain code for the contour using 2 as the initial point in the chain. Give the chain code in both integer and in binary form. Υπολογίστε τον κώδικα αλυσίδας για το περίγραµµα χρησιµοποιώντας 1 σαν το αρχικό σηµείο της αλυσίδας. ώστε τον κώδικα αλυσίδας σε ακέραια και δυαδική µορφή 9. Invent a technique for finding the borders of objects using morphological techniques and logical operations between images. Βρέστε µια τεχνική για εύρεση ορίων αντικειµένου χρησιµοποιώντας µορφολογικές τεχνικές και λογικές λειτουργίες µεταξύ εικόνων. 2.88

89 10. Experiment with the operation SKEL using some small objects and a small Πειραµατιστείτε µε την λειτουργία SKEL χρησιµοποιώντας µερικά µικρά αντικείµενα και µικρό δοµικό στοιχείο. 2.89

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 19/5/2007

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 19/5/2007 Οδηγίες: Να απαντηθούν όλες οι ερωτήσεις. Αν κάπου κάνετε κάποιες υποθέσεις να αναφερθούν στη σχετική ερώτηση. Όλα τα αρχεία που αναφέρονται στα προβλήματα βρίσκονται στον ίδιο φάκελο με το εκτελέσιμο

Διαβάστε περισσότερα

2 Composition. Invertible Mappings

2 Composition. Invertible Mappings Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan Composition. Invertible Mappings In this section we discuss two procedures for creating new mappings from old ones, namely,

Διαβάστε περισσότερα

Τελική Εξέταση =1 = 0. a b c. Τµήµα Ηλεκτρολόγων Μηχανικών και Μηχανικών Υπολογιστών. HMY 626 Επεξεργασία Εικόνας

Τελική Εξέταση =1 = 0. a b c. Τµήµα Ηλεκτρολόγων Μηχανικών και Μηχανικών Υπολογιστών. HMY 626 Επεξεργασία Εικόνας Τελική Εξέταση. Logic Operations () In the grid areas provided below, draw the results of the following binary operations a. NOT(NOT() OR ) (4) b. ( OR ) XOR ( ND ) (4) c. (( ND ) XOR ) XOR (NOT()) (4)

Διαβάστε περισσότερα

HOMEWORK 4 = G. In order to plot the stress versus the stretch we define a normalized stretch:

HOMEWORK 4 = G. In order to plot the stress versus the stretch we define a normalized stretch: HOMEWORK 4 Problem a For the fast loading case, we want to derive the relationship between P zz and λ z. We know that the nominal stress is expressed as: P zz = ψ λ z where λ z = λ λ z. Therefore, applying

Διαβάστε περισσότερα

4.6 Autoregressive Moving Average Model ARMA(1,1)

4.6 Autoregressive Moving Average Model ARMA(1,1) 84 CHAPTER 4. STATIONARY TS MODELS 4.6 Autoregressive Moving Average Model ARMA(,) This section is an introduction to a wide class of models ARMA(p,q) which we will consider in more detail later in this

Διαβάστε περισσότερα

CHAPTER 25 SOLVING EQUATIONS BY ITERATIVE METHODS

CHAPTER 25 SOLVING EQUATIONS BY ITERATIVE METHODS CHAPTER 5 SOLVING EQUATIONS BY ITERATIVE METHODS EXERCISE 104 Page 8 1. Find the positive root of the equation x + 3x 5 = 0, correct to 3 significant figures, using the method of bisection. Let f(x) =

Διαβάστε περισσότερα

EE512: Error Control Coding

EE512: Error Control Coding EE512: Error Control Coding Solution for Assignment on Finite Fields February 16, 2007 1. (a) Addition and Multiplication tables for GF (5) and GF (7) are shown in Tables 1 and 2. + 0 1 2 3 4 0 0 1 2 3

Διαβάστε περισσότερα

Homework 3 Solutions

Homework 3 Solutions Homework 3 Solutions Igor Yanovsky (Math 151A TA) Problem 1: Compute the absolute error and relative error in approximations of p by p. (Use calculator!) a) p π, p 22/7; b) p π, p 3.141. Solution: For

Διαβάστε περισσότερα

C.S. 430 Assignment 6, Sample Solutions

C.S. 430 Assignment 6, Sample Solutions C.S. 430 Assignment 6, Sample Solutions Paul Liu November 15, 2007 Note that these are sample solutions only; in many cases there were many acceptable answers. 1 Reynolds Problem 10.1 1.1 Normal-order

Διαβάστε περισσότερα

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 6/5/2006

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 6/5/2006 Οδηγίες: Να απαντηθούν όλες οι ερωτήσεις. Ολοι οι αριθμοί που αναφέρονται σε όλα τα ερωτήματα είναι μικρότεροι το 1000 εκτός αν ορίζεται διαφορετικά στη διατύπωση του προβλήματος. Διάρκεια: 3,5 ώρες Καλή

Διαβάστε περισσότερα

Πρόβλημα 1: Αναζήτηση Ελάχιστης/Μέγιστης Τιμής

Πρόβλημα 1: Αναζήτηση Ελάχιστης/Μέγιστης Τιμής Πρόβλημα 1: Αναζήτηση Ελάχιστης/Μέγιστης Τιμής Να γραφεί πρόγραμμα το οποίο δέχεται ως είσοδο μια ακολουθία S από n (n 40) ακέραιους αριθμούς και επιστρέφει ως έξοδο δύο ακολουθίες από θετικούς ακέραιους

Διαβάστε περισσότερα

Main source: "Discrete-time systems and computer control" by Α. ΣΚΟΔΡΑΣ ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ ΔΙΑΛΕΞΗ 4 ΔΙΑΦΑΝΕΙΑ 1

Main source: Discrete-time systems and computer control by Α. ΣΚΟΔΡΑΣ ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ ΔΙΑΛΕΞΗ 4 ΔΙΑΦΑΝΕΙΑ 1 Main source: "Discrete-time systems and computer control" by Α. ΣΚΟΔΡΑΣ ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ ΔΙΑΛΕΞΗ 4 ΔΙΑΦΑΝΕΙΑ 1 A Brief History of Sampling Research 1915 - Edmund Taylor Whittaker (1873-1956) devised a

Διαβάστε περισσότερα

Section 8.3 Trigonometric Equations

Section 8.3 Trigonometric Equations 99 Section 8. Trigonometric Equations Objective 1: Solve Equations Involving One Trigonometric Function. In this section and the next, we will exple how to solving equations involving trigonometric functions.

Διαβάστε περισσότερα

ΕΙΣΑΓΩΓΗ ΣΤΗ ΣΤΑΤΙΣΤΙΚΗ ΑΝΑΛΥΣΗ

ΕΙΣΑΓΩΓΗ ΣΤΗ ΣΤΑΤΙΣΤΙΚΗ ΑΝΑΛΥΣΗ ΕΙΣΑΓΩΓΗ ΣΤΗ ΣΤΑΤΙΣΤΙΚΗ ΑΝΑΛΥΣΗ ΕΛΕΝΑ ΦΛΟΚΑ Επίκουρος Καθηγήτρια Τµήµα Φυσικής, Τοµέας Φυσικής Περιβάλλοντος- Μετεωρολογίας ΓΕΝΙΚΟΙ ΟΡΙΣΜΟΙ Πληθυσµός Σύνολο ατόµων ή αντικειµένων στα οποία αναφέρονται

Διαβάστε περισσότερα

Nowhere-zero flows Let be a digraph, Abelian group. A Γ-circulation in is a mapping : such that, where, and : tail in X, head in

Nowhere-zero flows Let be a digraph, Abelian group. A Γ-circulation in is a mapping : such that, where, and : tail in X, head in Nowhere-zero flows Let be a digraph, Abelian group. A Γ-circulation in is a mapping : such that, where, and : tail in X, head in : tail in X, head in A nowhere-zero Γ-flow is a Γ-circulation such that

Διαβάστε περισσότερα

Instruction Execution Times

Instruction Execution Times 1 C Execution Times InThisAppendix... Introduction DL330 Execution Times DL330P Execution Times DL340 Execution Times C-2 Execution Times Introduction Data Registers This appendix contains several tables

Διαβάστε περισσότερα

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 24/3/2007

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 24/3/2007 Οδηγίες: Να απαντηθούν όλες οι ερωτήσεις. Όλοι οι αριθμοί που αναφέρονται σε όλα τα ερωτήματα μικρότεροι του 10000 εκτός αν ορίζεται διαφορετικά στη διατύπωση του προβλήματος. Αν κάπου κάνετε κάποιες υποθέσεις

Διαβάστε περισσότερα

Phys460.nb Solution for the t-dependent Schrodinger s equation How did we find the solution? (not required)

Phys460.nb Solution for the t-dependent Schrodinger s equation How did we find the solution? (not required) Phys460.nb 81 ψ n (t) is still the (same) eigenstate of H But for tdependent H. The answer is NO. 5.5.5. Solution for the tdependent Schrodinger s equation If we assume that at time t 0, the electron starts

Διαβάστε περισσότερα

Lecture 2: Dirac notation and a review of linear algebra Read Sakurai chapter 1, Baym chatper 3

Lecture 2: Dirac notation and a review of linear algebra Read Sakurai chapter 1, Baym chatper 3 Lecture 2: Dirac notation and a review of linear algebra Read Sakurai chapter 1, Baym chatper 3 1 State vector space and the dual space Space of wavefunctions The space of wavefunctions is the set of all

Διαβάστε περισσότερα

Example Sheet 3 Solutions

Example Sheet 3 Solutions Example Sheet 3 Solutions. i Regular Sturm-Liouville. ii Singular Sturm-Liouville mixed boundary conditions. iii Not Sturm-Liouville ODE is not in Sturm-Liouville form. iv Regular Sturm-Liouville note

Διαβάστε περισσότερα

derivation of the Laplacian from rectangular to spherical coordinates

derivation of the Laplacian from rectangular to spherical coordinates derivation of the Laplacian from rectangular to spherical coordinates swapnizzle 03-03- :5:43 We begin by recognizing the familiar conversion from rectangular to spherical coordinates (note that φ is used

Διαβάστε περισσότερα

3.4 SUM AND DIFFERENCE FORMULAS. NOTE: cos(α+β) cos α + cos β cos(α-β) cos α -cos β

3.4 SUM AND DIFFERENCE FORMULAS. NOTE: cos(α+β) cos α + cos β cos(α-β) cos α -cos β 3.4 SUM AND DIFFERENCE FORMULAS Page Theorem cos(αβ cos α cos β -sin α cos(α-β cos α cos β sin α NOTE: cos(αβ cos α cos β cos(α-β cos α -cos β Proof of cos(α-β cos α cos β sin α Let s use a unit circle

Διαβάστε περισσότερα

ST5224: Advanced Statistical Theory II

ST5224: Advanced Statistical Theory II ST5224: Advanced Statistical Theory II 2014/2015: Semester II Tutorial 7 1. Let X be a sample from a population P and consider testing hypotheses H 0 : P = P 0 versus H 1 : P = P 1, where P j is a known

Διαβάστε περισσότερα

Physical DB Design. B-Trees Index files can become quite large for large main files Indices on index files are possible.

Physical DB Design. B-Trees Index files can become quite large for large main files Indices on index files are possible. B-Trees Index files can become quite large for large main files Indices on index files are possible 3 rd -level index 2 nd -level index 1 st -level index Main file 1 The 1 st -level index consists of pairs

Διαβάστε περισσότερα

Lecture 2. Soundness and completeness of propositional logic

Lecture 2. Soundness and completeness of propositional logic Lecture 2 Soundness and completeness of propositional logic February 9, 2004 1 Overview Review of natural deduction. Soundness and completeness. Semantics of propositional formulas. Soundness proof. Completeness

Διαβάστε περισσότερα

Approximation of distance between locations on earth given by latitude and longitude

Approximation of distance between locations on earth given by latitude and longitude Approximation of distance between locations on earth given by latitude and longitude Jan Behrens 2012-12-31 In this paper we shall provide a method to approximate distances between two points on earth

Διαβάστε περισσότερα

Section 9.2 Polar Equations and Graphs

Section 9.2 Polar Equations and Graphs 180 Section 9. Polar Equations and Graphs In this section, we will be graphing polar equations on a polar grid. In the first few examples, we will write the polar equation in rectangular form to help identify

Διαβάστε περισσότερα

Other Test Constructions: Likelihood Ratio & Bayes Tests

Other Test Constructions: Likelihood Ratio & Bayes Tests Other Test Constructions: Likelihood Ratio & Bayes Tests Side-Note: So far we have seen a few approaches for creating tests such as Neyman-Pearson Lemma ( most powerful tests of H 0 : θ = θ 0 vs H 1 :

Διαβάστε περισσότερα

The Simply Typed Lambda Calculus

The Simply Typed Lambda Calculus Type Inference Instead of writing type annotations, can we use an algorithm to infer what the type annotations should be? That depends on the type system. For simple type systems the answer is yes, and

Διαβάστε περισσότερα

Problem Set 3: Solutions

Problem Set 3: Solutions CMPSCI 69GG Applied Information Theory Fall 006 Problem Set 3: Solutions. [Cover and Thomas 7.] a Define the following notation, C I p xx; Y max X; Y C I p xx; Ỹ max I X; Ỹ We would like to show that C

Διαβάστε περισσότερα

9.09. # 1. Area inside the oval limaçon r = cos θ. To graph, start with θ = 0 so r = 6. Compute dr

9.09. # 1. Area inside the oval limaçon r = cos θ. To graph, start with θ = 0 so r = 6. Compute dr 9.9 #. Area inside the oval limaçon r = + cos. To graph, start with = so r =. Compute d = sin. Interesting points are where d vanishes, or at =,,, etc. For these values of we compute r:,,, and the values

Διαβάστε περισσότερα

Block Ciphers Modes. Ramki Thurimella

Block Ciphers Modes. Ramki Thurimella Block Ciphers Modes Ramki Thurimella Only Encryption I.e. messages could be modified Should not assume that nonsensical messages do no harm Always must be combined with authentication 2 Padding Must be

Διαβάστε περισσότερα

Concrete Mathematics Exercises from 30 September 2016

Concrete Mathematics Exercises from 30 September 2016 Concrete Mathematics Exercises from 30 September 2016 Silvio Capobianco Exercise 1.7 Let H(n) = J(n + 1) J(n). Equation (1.8) tells us that H(2n) = 2, and H(2n+1) = J(2n+2) J(2n+1) = (2J(n+1) 1) (2J(n)+1)

Διαβάστε περισσότερα

Fractional Colorings and Zykov Products of graphs

Fractional Colorings and Zykov Products of graphs Fractional Colorings and Zykov Products of graphs Who? Nichole Schimanski When? July 27, 2011 Graphs A graph, G, consists of a vertex set, V (G), and an edge set, E(G). V (G) is any finite set E(G) is

Διαβάστε περισσότερα

Econ 2110: Fall 2008 Suggested Solutions to Problem Set 8 questions or comments to Dan Fetter 1

Econ 2110: Fall 2008 Suggested Solutions to Problem Set 8  questions or comments to Dan Fetter 1 Eon : Fall 8 Suggested Solutions to Problem Set 8 Email questions or omments to Dan Fetter Problem. Let X be a salar with density f(x, θ) (θx + θ) [ x ] with θ. (a) Find the most powerful level α test

Διαβάστε περισσότερα

Math221: HW# 1 solutions

Math221: HW# 1 solutions Math: HW# solutions Andy Royston October, 5 7.5.7, 3 rd Ed. We have a n = b n = a = fxdx = xdx =, x cos nxdx = x sin nx n sin nxdx n = cos nx n = n n, x sin nxdx = x cos nx n + cos nxdx n cos n = + sin

Διαβάστε περισσότερα

The challenges of non-stable predicates

The challenges of non-stable predicates The challenges of non-stable predicates Consider a non-stable predicate Φ encoding, say, a safety property. We want to determine whether Φ holds for our program. The challenges of non-stable predicates

Διαβάστε περισσότερα

Code Breaker. TEACHER s NOTES

Code Breaker. TEACHER s NOTES TEACHER s NOTES Time: 50 minutes Learning Outcomes: To relate the genetic code to the assembly of proteins To summarize factors that lead to different types of mutations To distinguish among positive,

Διαβάστε περισσότερα

Elements of Information Theory

Elements of Information Theory Elements of Information Theory Model of Digital Communications System A Logarithmic Measure for Information Mutual Information Units of Information Self-Information News... Example Information Measure

Διαβάστε περισσότερα

k A = [k, k]( )[a 1, a 2 ] = [ka 1,ka 2 ] 4For the division of two intervals of confidence in R +

k A = [k, k]( )[a 1, a 2 ] = [ka 1,ka 2 ] 4For the division of two intervals of confidence in R + Chapter 3. Fuzzy Arithmetic 3- Fuzzy arithmetic: ~Addition(+) and subtraction (-): Let A = [a and B = [b, b in R If x [a and y [b, b than x+y [a +b +b Symbolically,we write A(+)B = [a (+)[b, b = [a +b

Διαβάστε περισσότερα

D Alembert s Solution to the Wave Equation

D Alembert s Solution to the Wave Equation D Alembert s Solution to the Wave Equation MATH 467 Partial Differential Equations J. Robert Buchanan Department of Mathematics Fall 2018 Objectives In this lesson we will learn: a change of variable technique

Διαβάστε περισσότερα

Finite Field Problems: Solutions

Finite Field Problems: Solutions Finite Field Problems: Solutions 1. Let f = x 2 +1 Z 11 [x] and let F = Z 11 [x]/(f), a field. Let Solution: F =11 2 = 121, so F = 121 1 = 120. The possible orders are the divisors of 120. Solution: The

Διαβάστε περισσότερα

Matrices and Determinants

Matrices and Determinants Matrices and Determinants SUBJECTIVE PROBLEMS: Q 1. For what value of k do the following system of equations possess a non-trivial (i.e., not all zero) solution over the set of rationals Q? x + ky + 3z

Διαβάστε περισσότερα

ECE 468: Digital Image Processing. Lecture 8

ECE 468: Digital Image Processing. Lecture 8 ECE 468: Digital Image Processing Lecture 8 Prof. Sinisa Todorovic sinisa@eecs.oregonstate.edu 1 Image Reconstruction from Projections X-ray computed tomography: X-raying an object from different directions

Διαβάστε περισσότερα

Partial Differential Equations in Biology The boundary element method. March 26, 2013

Partial Differential Equations in Biology The boundary element method. March 26, 2013 The boundary element method March 26, 203 Introduction and notation The problem: u = f in D R d u = ϕ in Γ D u n = g on Γ N, where D = Γ D Γ N, Γ D Γ N = (possibly, Γ D = [Neumann problem] or Γ N = [Dirichlet

Διαβάστε περισσότερα

1. Ηλεκτρικό μαύρο κουτί: Αισθητήρας μετατόπισης με βάση τη χωρητικότητα

1. Ηλεκτρικό μαύρο κουτί: Αισθητήρας μετατόπισης με βάση τη χωρητικότητα IPHO_42_2011_EXP1.DO Experimental ompetition: 14 July 2011 Problem 1 Page 1 of 5 1. Ηλεκτρικό μαύρο κουτί: Αισθητήρας μετατόπισης με βάση τη χωρητικότητα Για ένα πυκνωτή χωρητικότητας ο οποίος είναι μέρος

Διαβάστε περισσότερα

SCHOOL OF MATHEMATICAL SCIENCES G11LMA Linear Mathematics Examination Solutions

SCHOOL OF MATHEMATICAL SCIENCES G11LMA Linear Mathematics Examination Solutions SCHOOL OF MATHEMATICAL SCIENCES GLMA Linear Mathematics 00- Examination Solutions. (a) i. ( + 5i)( i) = (6 + 5) + (5 )i = + i. Real part is, imaginary part is. (b) ii. + 5i i ( + 5i)( + i) = ( i)( + i)

Διαβάστε περισσότερα

Solutions to Exercise Sheet 5

Solutions to Exercise Sheet 5 Solutions to Eercise Sheet 5 jacques@ucsd.edu. Let X and Y be random variables with joint pdf f(, y) = 3y( + y) where and y. Determine each of the following probabilities. Solutions. a. P (X ). b. P (X

Διαβάστε περισσότερα

5-1. Industrial Vision. Machine Vision Systems : Image Acquisition Image processing Analysis/Exploitation

5-1. Industrial Vision. Machine Vision Systems : Image Acquisition Image processing Analysis/Exploitation 5 Industrial Vision Machine Vision Systems : Image Acquisition Image processing Analysis/Exploitation 5- Image processing Y (colomns) 35 3 38 3 5 35 69 8 3 38 3 3 69 79 39 3 3 33 9 37 6 77 X (rows) 7 38

Διαβάστε περισσότερα

On a four-dimensional hyperbolic manifold with finite volume

On a four-dimensional hyperbolic manifold with finite volume BULETINUL ACADEMIEI DE ŞTIINŢE A REPUBLICII MOLDOVA. MATEMATICA Numbers 2(72) 3(73), 2013, Pages 80 89 ISSN 1024 7696 On a four-dimensional hyperbolic manifold with finite volume I.S.Gutsul Abstract. In

Διαβάστε περισσότερα

6.3 Forecasting ARMA processes

6.3 Forecasting ARMA processes 122 CHAPTER 6. ARMA MODELS 6.3 Forecasting ARMA processes The purpose of forecasting is to predict future values of a TS based on the data collected to the present. In this section we will discuss a linear

Διαβάστε περισσότερα

CHAPTER 48 APPLICATIONS OF MATRICES AND DETERMINANTS

CHAPTER 48 APPLICATIONS OF MATRICES AND DETERMINANTS CHAPTER 48 APPLICATIONS OF MATRICES AND DETERMINANTS EXERCISE 01 Page 545 1. Use matrices to solve: 3x + 4y x + 5y + 7 3x + 4y x + 5y 7 Hence, 3 4 x 0 5 y 7 The inverse of 3 4 5 is: 1 5 4 1 5 4 15 8 3

Διαβάστε περισσότερα

ω ω ω ω ω ω+2 ω ω+2 + ω ω ω ω+2 + ω ω+1 ω ω+2 2 ω ω ω ω ω ω ω ω+1 ω ω2 ω ω2 + ω ω ω2 + ω ω ω ω2 + ω ω+1 ω ω2 + ω ω+1 + ω ω ω ω2 + ω

ω ω ω ω ω ω+2 ω ω+2 + ω ω ω ω+2 + ω ω+1 ω ω+2 2 ω ω ω ω ω ω ω ω+1 ω ω2 ω ω2 + ω ω ω2 + ω ω ω ω2 + ω ω+1 ω ω2 + ω ω+1 + ω ω ω ω2 + ω 0 1 2 3 4 5 6 ω ω + 1 ω + 2 ω + 3 ω + 4 ω2 ω2 + 1 ω2 + 2 ω2 + 3 ω3 ω3 + 1 ω3 + 2 ω4 ω4 + 1 ω5 ω 2 ω 2 + 1 ω 2 + 2 ω 2 + ω ω 2 + ω + 1 ω 2 + ω2 ω 2 2 ω 2 2 + 1 ω 2 2 + ω ω 2 3 ω 3 ω 3 + 1 ω 3 + ω ω 3 +

Διαβάστε περισσότερα

Μηχανική Μάθηση Hypothesis Testing

Μηχανική Μάθηση Hypothesis Testing ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ Μηχανική Μάθηση Hypothesis Testing Γιώργος Μπορμπουδάκης Τμήμα Επιστήμης Υπολογιστών Procedure 1. Form the null (H 0 ) and alternative (H 1 ) hypothesis 2. Consider

Διαβάστε περισσότερα

ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ. Ψηφιακή Οικονομία. Διάλεξη 7η: Consumer Behavior Mαρίνα Μπιτσάκη Τμήμα Επιστήμης Υπολογιστών

ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ. Ψηφιακή Οικονομία. Διάλεξη 7η: Consumer Behavior Mαρίνα Μπιτσάκη Τμήμα Επιστήμης Υπολογιστών ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ Ψηφιακή Οικονομία Διάλεξη 7η: Consumer Behavior Mαρίνα Μπιτσάκη Τμήμα Επιστήμης Υπολογιστών Τέλος Ενότητας Χρηματοδότηση Το παρόν εκπαιδευτικό υλικό έχει αναπτυχθεί

Διαβάστε περισσότερα

Advances in Digital Imaging and Computer Vision

Advances in Digital Imaging and Computer Vision Advances in Digital Imaging and Computer Vision Διάλεξη 5 Κώστας Μαριάς kmarias@staff.teicrete.gr 24/4/2017 1 Αναφορές An Introduction to Digital Image Processing with Matlab, Alasdair McAndrew N. Papamarkos,

Διαβάστε περισσότερα

Every set of first-order formulas is equivalent to an independent set

Every set of first-order formulas is equivalent to an independent set Every set of first-order formulas is equivalent to an independent set May 6, 2008 Abstract A set of first-order formulas, whatever the cardinality of the set of symbols, is equivalent to an independent

Διαβάστε περισσότερα

HISTOGRAMS AND PERCENTILES What is the 25 th percentile of a histogram? What is the 50 th percentile for the cigarette histogram?

HISTOGRAMS AND PERCENTILES What is the 25 th percentile of a histogram? What is the 50 th percentile for the cigarette histogram? HISTOGRAMS AND PERCENTILES What is the 25 th percentile of a histogram? The point on the horizontal axis such that of the area under the histogram lies to the left of that point (and to the right) What

Διαβάστε περισσότερα

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 11/3/2006

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 11/3/2006 ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 11/3/26 Οδηγίες: Να απαντηθούν όλες οι ερωτήσεις. Ολοι οι αριθμοί που αναφέρονται σε όλα τα ερωτήματα μικρότεροι το 1 εκτός αν ορίζεται διαφορετικά στη διατύπωση

Διαβάστε περισσότερα

PARTIAL NOTES for 6.1 Trigonometric Identities

PARTIAL NOTES for 6.1 Trigonometric Identities PARTIAL NOTES for 6.1 Trigonometric Identities tanθ = sinθ cosθ cotθ = cosθ sinθ BASIC IDENTITIES cscθ = 1 sinθ secθ = 1 cosθ cotθ = 1 tanθ PYTHAGOREAN IDENTITIES sin θ + cos θ =1 tan θ +1= sec θ 1 + cot

Διαβάστε περισσότερα

Second Order RLC Filters

Second Order RLC Filters ECEN 60 Circuits/Electronics Spring 007-0-07 P. Mathys Second Order RLC Filters RLC Lowpass Filter A passive RLC lowpass filter (LPF) circuit is shown in the following schematic. R L C v O (t) Using phasor

Διαβάστε περισσότερα

Démographie spatiale/spatial Demography

Démographie spatiale/spatial Demography ΠΑΝΕΠΙΣΤΗΜΙΟ ΘΕΣΣΑΛΙΑΣ Démographie spatiale/spatial Demography Session 1: Introduction to spatial demography Basic concepts Michail Agorastakis Department of Planning & Regional Development Άδειες Χρήσης

Διαβάστε περισσότερα

Απόκριση σε Μοναδιαία Ωστική Δύναμη (Unit Impulse) Απόκριση σε Δυνάμεις Αυθαίρετα Μεταβαλλόμενες με το Χρόνο. Απόστολος Σ.

Απόκριση σε Μοναδιαία Ωστική Δύναμη (Unit Impulse) Απόκριση σε Δυνάμεις Αυθαίρετα Μεταβαλλόμενες με το Χρόνο. Απόστολος Σ. Απόκριση σε Δυνάμεις Αυθαίρετα Μεταβαλλόμενες με το Χρόνο The time integral of a force is referred to as impulse, is determined by and is obtained from: Newton s 2 nd Law of motion states that the action

Διαβάστε περισσότερα

Ordinal Arithmetic: Addition, Multiplication, Exponentiation and Limit

Ordinal Arithmetic: Addition, Multiplication, Exponentiation and Limit Ordinal Arithmetic: Addition, Multiplication, Exponentiation and Limit Ting Zhang Stanford May 11, 2001 Stanford, 5/11/2001 1 Outline Ordinal Classification Ordinal Addition Ordinal Multiplication Ordinal

Διαβάστε περισσότερα

[1] P Q. Fig. 3.1

[1] P Q. Fig. 3.1 1 (a) Define resistance....... [1] (b) The smallest conductor within a computer processing chip can be represented as a rectangular block that is one atom high, four atoms wide and twenty atoms long. One

Διαβάστε περισσότερα

Section 7.6 Double and Half Angle Formulas

Section 7.6 Double and Half Angle Formulas 09 Section 7. Double and Half Angle Fmulas To derive the double-angles fmulas, we will use the sum of two angles fmulas that we developed in the last section. We will let α θ and β θ: cos(θ) cos(θ + θ)

Διαβάστε περισσότερα

Ψηφιακή Επεξεργασία Εικόνας

Ψηφιακή Επεξεργασία Εικόνας ΠΑΝΕΠΙΣΤΗΜΙΟ ΙΩΑΝΝΙΝΩΝ ΑΝΟΙΚΤΑ ΑΚΑΔΗΜΑΪΚΑ ΜΑΘΗΜΑΤΑ Ψηφιακή Επεξεργασία Εικόνας Μετασχηματισμοί έντασης και χωρικό φιλτράρισμα Διδάσκων : Αναπληρωτής Καθηγητής Νίκου Χριστόφορος Άδειες Χρήσης Το παρόν εκπαιδευτικό

Διαβάστε περισσότερα

A Note on Intuitionistic Fuzzy. Equivalence Relation

A Note on Intuitionistic Fuzzy. Equivalence Relation International Mathematical Forum, 5, 2010, no. 67, 3301-3307 A Note on Intuitionistic Fuzzy Equivalence Relation D. K. Basnet Dept. of Mathematics, Assam University Silchar-788011, Assam, India dkbasnet@rediffmail.com

Διαβάστε περισσότερα

forms This gives Remark 1. How to remember the above formulas: Substituting these into the equation we obtain with

forms This gives Remark 1. How to remember the above formulas: Substituting these into the equation we obtain with Week 03: C lassification of S econd- Order L inear Equations In last week s lectures we have illustrated how to obtain the general solutions of first order PDEs using the method of characteristics. We

Διαβάστε περισσότερα

Reminders: linear functions

Reminders: linear functions Reminders: linear functions Let U and V be vector spaces over the same field F. Definition A function f : U V is linear if for every u 1, u 2 U, f (u 1 + u 2 ) = f (u 1 ) + f (u 2 ), and for every u U

Διαβάστε περισσότερα

b. Use the parametrization from (a) to compute the area of S a as S a ds. Be sure to substitute for ds!

b. Use the parametrization from (a) to compute the area of S a as S a ds. Be sure to substitute for ds! MTH U341 urface Integrals, tokes theorem, the divergence theorem To be turned in Wed., Dec. 1. 1. Let be the sphere of radius a, x 2 + y 2 + z 2 a 2. a. Use spherical coordinates (with ρ a) to parametrize.

Διαβάστε περισσότερα

ΚΥΠΡΙΑΚΟΣ ΣΥΝΔΕΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY 21 ος ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ Δεύτερος Γύρος - 30 Μαρτίου 2011

ΚΥΠΡΙΑΚΟΣ ΣΥΝΔΕΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY 21 ος ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ Δεύτερος Γύρος - 30 Μαρτίου 2011 Διάρκεια Διαγωνισμού: 3 ώρες Απαντήστε όλες τις ερωτήσεις Μέγιστο Βάρος (20 Μονάδες) Δίνεται ένα σύνολο από N σφαιρίδια τα οποία δεν έχουν όλα το ίδιο βάρος μεταξύ τους και ένα κουτί που αντέχει μέχρι

Διαβάστε περισσότερα

6.1. Dirac Equation. Hamiltonian. Dirac Eq.

6.1. Dirac Equation. Hamiltonian. Dirac Eq. 6.1. Dirac Equation Ref: M.Kaku, Quantum Field Theory, Oxford Univ Press (1993) η μν = η μν = diag(1, -1, -1, -1) p 0 = p 0 p = p i = -p i p μ p μ = p 0 p 0 + p i p i = E c 2 - p 2 = (m c) 2 H = c p 2

Διαβάστε περισσότερα

Congruence Classes of Invertible Matrices of Order 3 over F 2

Congruence Classes of Invertible Matrices of Order 3 over F 2 International Journal of Algebra, Vol. 8, 24, no. 5, 239-246 HIKARI Ltd, www.m-hikari.com http://dx.doi.org/.2988/ija.24.422 Congruence Classes of Invertible Matrices of Order 3 over F 2 Ligong An and

Διαβάστε περισσότερα

( ) 2 and compare to M.

( ) 2 and compare to M. Problems and Solutions for Section 4.2 4.9 through 4.33) 4.9 Calculate the square root of the matrix 3!0 M!0 8 Hint: Let M / 2 a!b ; calculate M / 2!b c ) 2 and compare to M. Solution: Given: 3!0 M!0 8

Διαβάστε περισσότερα

Numerical Analysis FMN011

Numerical Analysis FMN011 Numerical Analysis FMN011 Carmen Arévalo Lund University carmen@maths.lth.se Lecture 12 Periodic data A function g has period P if g(x + P ) = g(x) Model: Trigonometric polynomial of order M T M (x) =

Διαβάστε περισσότερα

Areas and Lengths in Polar Coordinates

Areas and Lengths in Polar Coordinates Kiryl Tsishchanka Areas and Lengths in Polar Coordinates In this section we develop the formula for the area of a region whose boundary is given by a polar equation. We need to use the formula for the

Διαβάστε περισσότερα

Statistical Inference I Locally most powerful tests

Statistical Inference I Locally most powerful tests Statistical Inference I Locally most powerful tests Shirsendu Mukherjee Department of Statistics, Asutosh College, Kolkata, India. shirsendu st@yahoo.co.in So far we have treated the testing of one-sided

Διαβάστε περισσότερα

Συστήματα Διαχείρισης Βάσεων Δεδομένων

Συστήματα Διαχείρισης Βάσεων Δεδομένων ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ Συστήματα Διαχείρισης Βάσεων Δεδομένων Φροντιστήριο 9: Transactions - part 1 Δημήτρης Πλεξουσάκης Τμήμα Επιστήμης Υπολογιστών Tutorial on Undo, Redo and Undo/Redo

Διαβάστε περισσότερα

the total number of electrons passing through the lamp.

the total number of electrons passing through the lamp. 1. A 12 V 36 W lamp is lit to normal brightness using a 12 V car battery of negligible internal resistance. The lamp is switched on for one hour (3600 s). For the time of 1 hour, calculate (i) the energy

Διαβάστε περισσότερα

UNIVERSITY OF CALIFORNIA. EECS 150 Fall ) You are implementing an 4:1 Multiplexer that has the following specifications:

UNIVERSITY OF CALIFORNIA. EECS 150 Fall ) You are implementing an 4:1 Multiplexer that has the following specifications: UNIVERSITY OF CALIFORNIA Department of Electrical Engineering and Computer Sciences EECS 150 Fall 2001 Prof. Subramanian Midterm II 1) You are implementing an 4:1 Multiplexer that has the following specifications:

Διαβάστε περισσότερα

Strain gauge and rosettes

Strain gauge and rosettes Strain gauge and rosettes Introduction A strain gauge is a device which is used to measure strain (deformation) on an object subjected to forces. Strain can be measured using various types of devices classified

Διαβάστε περισσότερα

ANSWERSHEET (TOPIC = DIFFERENTIAL CALCULUS) COLLECTION #2. h 0 h h 0 h h 0 ( ) g k = g 0 + g 1 + g g 2009 =?

ANSWERSHEET (TOPIC = DIFFERENTIAL CALCULUS) COLLECTION #2. h 0 h h 0 h h 0 ( ) g k = g 0 + g 1 + g g 2009 =? Teko Classes IITJEE/AIEEE Maths by SUHAAG SIR, Bhopal, Ph (0755) 3 00 000 www.tekoclasses.com ANSWERSHEET (TOPIC DIFFERENTIAL CALCULUS) COLLECTION # Question Type A.Single Correct Type Q. (A) Sol least

Διαβάστε περισσότερα

Fourier Series. MATH 211, Calculus II. J. Robert Buchanan. Spring Department of Mathematics

Fourier Series. MATH 211, Calculus II. J. Robert Buchanan. Spring Department of Mathematics Fourier Series MATH 211, Calculus II J. Robert Buchanan Department of Mathematics Spring 2018 Introduction Not all functions can be represented by Taylor series. f (k) (c) A Taylor series f (x) = (x c)

Διαβάστε περισσότερα

Inverse trigonometric functions & General Solution of Trigonometric Equations. ------------------ ----------------------------- -----------------

Inverse trigonometric functions & General Solution of Trigonometric Equations. ------------------ ----------------------------- ----------------- Inverse trigonometric functions & General Solution of Trigonometric Equations. 1. Sin ( ) = a) b) c) d) Ans b. Solution : Method 1. Ans a: 17 > 1 a) is rejected. w.k.t Sin ( sin ) = d is rejected. If sin

Διαβάστε περισσότερα

Areas and Lengths in Polar Coordinates

Areas and Lengths in Polar Coordinates Kiryl Tsishchanka Areas and Lengths in Polar Coordinates In this section we develop the formula for the area of a region whose boundary is given by a polar equation. We need to use the formula for the

Διαβάστε περισσότερα

ΓΕΩΜΕΣΡΙΚΗ ΣΕΚΜΗΡΙΩΗ ΣΟΤ ΙΕΡΟΤ ΝΑΟΤ ΣΟΤ ΣΙΜΙΟΤ ΣΑΤΡΟΤ ΣΟ ΠΕΛΕΝΔΡΙ ΣΗ ΚΤΠΡΟΤ ΜΕ ΕΦΑΡΜΟΓΗ ΑΤΣΟΜΑΣΟΠΟΙΗΜΕΝΟΤ ΤΣΗΜΑΣΟ ΨΗΦΙΑΚΗ ΦΩΣΟΓΡΑΜΜΕΣΡΙΑ

ΓΕΩΜΕΣΡΙΚΗ ΣΕΚΜΗΡΙΩΗ ΣΟΤ ΙΕΡΟΤ ΝΑΟΤ ΣΟΤ ΣΙΜΙΟΤ ΣΑΤΡΟΤ ΣΟ ΠΕΛΕΝΔΡΙ ΣΗ ΚΤΠΡΟΤ ΜΕ ΕΦΑΡΜΟΓΗ ΑΤΣΟΜΑΣΟΠΟΙΗΜΕΝΟΤ ΤΣΗΜΑΣΟ ΨΗΦΙΑΚΗ ΦΩΣΟΓΡΑΜΜΕΣΡΙΑ ΕΘΝΙΚΟ ΜΕΣΟΒΙΟ ΠΟΛΤΣΕΧΝΕΙΟ ΣΜΗΜΑ ΑΓΡΟΝΟΜΩΝ-ΣΟΠΟΓΡΑΦΩΝ ΜΗΧΑΝΙΚΩΝ ΣΟΜΕΑ ΣΟΠΟΓΡΑΦΙΑ ΕΡΓΑΣΗΡΙΟ ΦΩΣΟΓΡΑΜΜΕΣΡΙΑ ΓΕΩΜΕΣΡΙΚΗ ΣΕΚΜΗΡΙΩΗ ΣΟΤ ΙΕΡΟΤ ΝΑΟΤ ΣΟΤ ΣΙΜΙΟΤ ΣΑΤΡΟΤ ΣΟ ΠΕΛΕΝΔΡΙ ΣΗ ΚΤΠΡΟΤ ΜΕ ΕΦΑΡΜΟΓΗ ΑΤΣΟΜΑΣΟΠΟΙΗΜΕΝΟΤ

Διαβάστε περισσότερα

Second Order Partial Differential Equations

Second Order Partial Differential Equations Chapter 7 Second Order Partial Differential Equations 7.1 Introduction A second order linear PDE in two independent variables (x, y Ω can be written as A(x, y u x + B(x, y u xy + C(x, y u u u + D(x, y

Διαβάστε περισσότερα

Right Rear Door. Let's now finish the door hinge saga with the right rear door

Right Rear Door. Let's now finish the door hinge saga with the right rear door Right Rear Door Let's now finish the door hinge saga with the right rear door You may have been already guessed my steps, so there is not much to describe in detail. Old upper one file:///c /Documents

Διαβάστε περισσότερα

«Χρήσεις γης, αξίες γης και κυκλοφοριακές ρυθμίσεις στο Δήμο Χαλκιδέων. Η μεταξύ τους σχέση και εξέλιξη.»

«Χρήσεις γης, αξίες γης και κυκλοφοριακές ρυθμίσεις στο Δήμο Χαλκιδέων. Η μεταξύ τους σχέση και εξέλιξη.» ΕΘΝΙΚΟ ΜΕΤΣΟΒΙΟ ΠΟΛΥΤΕΧΝΕΙΟ ΣΧΟΛΗ ΑΓΡΟΝΟΜΩΝ ΚΑΙ ΤΟΠΟΓΡΑΦΩΝ ΜΗΧΑΝΙΚΩΝ ΤΟΜΕΑΣ ΓΕΩΓΡΑΦΙΑΣ ΚΑΙ ΠΕΡΙΦΕΡΕΙΑΚΟΥ ΣΧΕΔΙΑΣΜΟΥ ΔΙΠΛΩΜΑΤΙΚΗ ΕΡΓΑΣΙΑ: «Χρήσεις γης, αξίες γης και κυκλοφοριακές ρυθμίσεις στο Δήμο Χαλκιδέων.

Διαβάστε περισσότερα

(1) Describe the process by which mercury atoms become excited in a fluorescent tube (3)

(1) Describe the process by which mercury atoms become excited in a fluorescent tube (3) Q1. (a) A fluorescent tube is filled with mercury vapour at low pressure. In order to emit electromagnetic radiation the mercury atoms must first be excited. (i) What is meant by an excited atom? (1) (ii)

Διαβάστε περισσότερα

Capacitors - Capacitance, Charge and Potential Difference

Capacitors - Capacitance, Charge and Potential Difference Capacitors - Capacitance, Charge and Potential Difference Capacitors store electric charge. This ability to store electric charge is known as capacitance. A simple capacitor consists of 2 parallel metal

Διαβάστε περισσότερα

Pg The perimeter is P = 3x The area of a triangle is. where b is the base, h is the height. In our case b = x, then the area is

Pg The perimeter is P = 3x The area of a triangle is. where b is the base, h is the height. In our case b = x, then the area is Pg. 9. The perimeter is P = The area of a triangle is A = bh where b is the base, h is the height 0 h= btan 60 = b = b In our case b =, then the area is A = = 0. By Pythagorean theorem a + a = d a a =

Διαβάστε περισσότερα

DESIGN OF MACHINERY SOLUTION MANUAL h in h 4 0.

DESIGN OF MACHINERY SOLUTION MANUAL h in h 4 0. DESIGN OF MACHINERY SOLUTION MANUAL -7-1! PROBLEM -7 Statement: Design a double-dwell cam to move a follower from to 25 6, dwell for 12, fall 25 and dwell for the remader The total cycle must take 4 sec

Διαβάστε περισσότερα

Modbus basic setup notes for IO-Link AL1xxx Master Block

Modbus basic setup notes for IO-Link AL1xxx Master Block n Modbus has four tables/registers where data is stored along with their associated addresses. We will be using the holding registers from address 40001 to 49999 that are R/W 16 bit/word. Two tables that

Διαβάστε περισσότερα

TMA4115 Matematikk 3

TMA4115 Matematikk 3 TMA4115 Matematikk 3 Andrew Stacey Norges Teknisk-Naturvitenskapelige Universitet Trondheim Spring 2010 Lecture 12: Mathematics Marvellous Matrices Andrew Stacey Norges Teknisk-Naturvitenskapelige Universitet

Διαβάστε περισσότερα

Math 6 SL Probability Distributions Practice Test Mark Scheme

Math 6 SL Probability Distributions Practice Test Mark Scheme Math 6 SL Probability Distributions Practice Test Mark Scheme. (a) Note: Award A for vertical line to right of mean, A for shading to right of their vertical line. AA N (b) evidence of recognizing symmetry

Διαβάστε περισσότερα

Exercises 10. Find a fundamental matrix of the given system of equations. Also find the fundamental matrix Φ(t) satisfying Φ(0) = I. 1.

Exercises 10. Find a fundamental matrix of the given system of equations. Also find the fundamental matrix Φ(t) satisfying Φ(0) = I. 1. Exercises 0 More exercises are available in Elementary Differential Equations. If you have a problem to solve any of them, feel free to come to office hour. Problem Find a fundamental matrix of the given

Διαβάστε περισσότερα

Problem Set 9 Solutions. θ + 1. θ 2 + cotθ ( ) sinθ e iφ is an eigenfunction of the ˆ L 2 operator. / θ 2. φ 2. sin 2 θ φ 2. ( ) = e iφ. = e iφ cosθ.

Problem Set 9 Solutions. θ + 1. θ 2 + cotθ ( ) sinθ e iφ is an eigenfunction of the ˆ L 2 operator. / θ 2. φ 2. sin 2 θ φ 2. ( ) = e iφ. = e iφ cosθ. Chemistry 362 Dr Jean M Standard Problem Set 9 Solutions The ˆ L 2 operator is defined as Verify that the angular wavefunction Y θ,φ) Also verify that the eigenvalue is given by 2! 2 & L ˆ 2! 2 2 θ 2 +

Διαβάστε περισσότερα