This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Imagej Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Imagej Question" Watch "Imagej Question" New topic

Imagej Question

Mostafa Ahmad

Joined: Feb 22, 2011
Posts: 11

I am trying to embed imagej in a java application, as I need to do the following sequence of operations on a passed image:
1-make rectangle around certain area.

The problem is the step of making rectangle does not work.

Here is a piece of code:

implus.setImage(bf); //bf is a buffered image, "Make Binary", ""); // converting to binary
ij.makeRectangle(30, 30, 30, 30);;

The output of the program:
There are no images open.

and then the application stops.

Can any one tell me how I can do the operation of making rectangular selection on a passed image or buffered image?

I agree. Here's the link:
subject: Imagej Question
jQuery in Action, 3rd edition