|
Hello, I am trying to create a new image, but something isn't working
properly. The first part:
ImagePlus ImMatImg = new ImagePlus();
ImMatImg = NewImage.createImage("ImMat Image", img_width, img_height,
1, 8, NewImage.FILL_BLACK);
ImageProcessor ImMat_ip = ImMatImg.getProcessor();
This seems to work ok, and if I do ImMatImg.show(); at this point it
will display properly. Next, I want to set the pixels to be an integer
array I've made, called ImMatInt, so I use:
ImMat_ip.setPixels(ImMatInt);
This command however doesn't appear to be working. I can't figure out
why, and I don't know how to figure out what's going wrong because
there is no error, the program just stops running. Any help or
suggestions would really be appreciated, I don't know what's going on.
Thanks,
Michael
|