hi everyone
In a image processing software i have to convert a matrix of pixel values 2D.into the image .can any one help me out with this..this part has been the most frustrating part of my project ...

Recommended Answers

All 3 Replies

Once again, it would help to know exactly what your problem is.

actually each image is represented as 2D matrix of pixels.now to get this matrix of pixel from a given image we can use pixelgrabber..
now we want to convert this matrix back into its inage form..how will we do this

Look at the API docs for BufferedImage and the setRGB method (the one that takes an array as one of the arguments). How you transform those "pixels" into the RGB values depends on what you have stored, and how, in that "matrix".

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.