Hi,
I am new to using Visual Basic and am having a few problems, and help would be greatly received:
The data is attached. (lena.xls is the spreadsheet with the data of the image and Book1 is this data viewed in notepad). Also attached is the pciture converted into grey scale.
The digital numbers for this image are contained in the file lena.xls. They are values that potentially range from 0 to 255, with lighter areas of the image having higher values. For example, the white of the right eye is approximately 1/3 of the way across the image and 1/3 of the way down. In this region of the excel file you should see some of the highest values for the digital numbers.
I have extracted the data for the grey scale image and is contained within lena.xls (attached) From this I have put the data into notepad and saved it as a .pgm file which i can then open in paint shop pro to view the image from the data.
The problem on the image is that the edges-because the computer will place the Sobel filter at the appropriate cell and will then look for values to the side, which may be off the edge of the worksheet.
To prevent this I have cloned the edge pixel so the sobel filter includes the edge of the original picture.
I am now having difficulties with these two tasks:
Algorithm
Produce a diagram outlining how your code will work and the steps needed at each stage to perform Sobel edge enhancement.
The code
Write some computer code to perform this operation (this can be done using the methods you have been taught in under 30 lines). Provide the code with your report. You may find it helpful to analyse the image on sheet1 and write the output to sheet2 as in the t-test example, above.
Any help/guidance/suggestions would be great as i'm completely stuck!!
Thanks
I am new to using Visual Basic and am having a few problems, and help would be greatly received:
The data is attached. (lena.xls is the spreadsheet with the data of the image and Book1 is this data viewed in notepad). Also attached is the pciture converted into grey scale.
The digital numbers for this image are contained in the file lena.xls. They are values that potentially range from 0 to 255, with lighter areas of the image having higher values. For example, the white of the right eye is approximately 1/3 of the way across the image and 1/3 of the way down. In this region of the excel file you should see some of the highest values for the digital numbers.
I have extracted the data for the grey scale image and is contained within lena.xls (attached) From this I have put the data into notepad and saved it as a .pgm file which i can then open in paint shop pro to view the image from the data.
The problem on the image is that the edges-because the computer will place the Sobel filter at the appropriate cell and will then look for values to the side, which may be off the edge of the worksheet.
To prevent this I have cloned the edge pixel so the sobel filter includes the edge of the original picture.
I am now having difficulties with these two tasks:
Algorithm
Produce a diagram outlining how your code will work and the steps needed at each stage to perform Sobel edge enhancement.
The code
Write some computer code to perform this operation (this can be done using the methods you have been taught in under 30 lines). Provide the code with your report. You may find it helpful to analyse the image on sheet1 and write the output to sheet2 as in the t-test example, above.
Any help/guidance/suggestions would be great as i'm completely stuck!!
Thanks