paret
October 1st, 2009, 09:40 PM
I have a question that I need to do in Java. I don't want help trying to solve it, I was just hoping someone could help me figure out what is being asked,and how Im supposed to go about doing it.
any feedback would be very helpful and much appreciated. Thank You
" 1. Medical researchers are using X-rays of thousands of patients to try to diagnose a
common back injury. Their software needs the X-ray images in two-colours, instead of
the greyscale currently needed. You are to use an uncommon method for edge detection
in order to convert the images, which hopefully will result in good data for the
researchers. Be sure to get it right, people are suffering!
The images will be defined in a 2D grid of integers (which values between 0 and
255, inclusive). You will produce a new image that only contains the values 0 or 255 in
each position. A pixel should be assigned a value of 255 iff the average value in the
adjacent pixels in the original image (including diagonals) is lower than the pixel's value
itself in the original image. Otherwise, the value should be 0. A sample image is given
below, with which you should test your algorithm. Print the result of the edge detection,
in a grid format, so that you can validate the results.
public static int[][] image = {{1,5,3,8,2},
{3,0,6,3,1},
{5,4,8,1,3},
{6,2,3,2,3},
{3,5,2,1,8}};
Hint: Do not perform your conversion on the original image. Be sure to make a copy! "
any feedback would be very helpful and much appreciated. Thank You
" 1. Medical researchers are using X-rays of thousands of patients to try to diagnose a
common back injury. Their software needs the X-ray images in two-colours, instead of
the greyscale currently needed. You are to use an uncommon method for edge detection
in order to convert the images, which hopefully will result in good data for the
researchers. Be sure to get it right, people are suffering!
The images will be defined in a 2D grid of integers (which values between 0 and
255, inclusive). You will produce a new image that only contains the values 0 or 255 in
each position. A pixel should be assigned a value of 255 iff the average value in the
adjacent pixels in the original image (including diagonals) is lower than the pixel's value
itself in the original image. Otherwise, the value should be 0. A sample image is given
below, with which you should test your algorithm. Print the result of the edge detection,
in a grid format, so that you can validate the results.
public static int[][] image = {{1,5,3,8,2},
{3,0,6,3,1},
{5,4,8,1,3},
{6,2,3,2,3},
{3,5,2,1,8}};
Hint: Do not perform your conversion on the original image. Be sure to make a copy! "