欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

matlab NO123

最编程 2024-05-08 17:27:06
...
Figure 2: The Project colour matrix example
images1 . zip and
Photos . zip are a set of real photographs. Do not attempt to solve these, but comment on each one in your report.
1.3 What to do
Write a function called findColours ( filename ) that given the string filename ,
loads an image and returns an array representing the colours found in the matrix. Please break this down in to the following steps:
findColours will call the following functions:
A function image = loadImage ( filename ) that given the string filename ,
loads an image and returns the image as type double.
A function, circleCoordinates = findCircles ( image ) the locates
and returns the coordinates of the four black circles. 1
A function the correctly un-distorts the images: correctImage ( circleCoordinates
, image ) . Note, images maybe flipped since there is no correct orientation.
A function colours = getColours ( image ) the takes the double image array,
image , and returns an array with the result of the colours. For now this will only use the undistorted images ( org_X . png and noise_X . png ) The colours used are red, green, yellow, blue and white.