Help needed with DNA band size calculation ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Help needed with DNA band size calculation ?

Drvet
Hi,
I am a new user of ImageJ software,I need to know how can i assess the band
size of DNA run on agarose or polyacrylamide gels ? I go through the
instruction manual & tutorial but i could not understand it fully, secondly
how can the results that are obtained be subjected to a spreadsheet or excel
for knowing the band size.

I am running my DNA samples with a 50bp marker in the center. I am
relatively new to the software based image analysis so pls help me out.
Reply | Threaded
Open this post in threaded view
|

drawString help

IJperson
Hi everybody

Anyone have any ideas why the following doesn't draw any text?

         Font f = new Font("Helvetica", Font.PLAIN, 72);
         iplus2.getStack().getProcessor(image.getCurrentSlice()).setFont(f);
         
iplus2.getStack().getProcessor(image.getCurrentSlice()).setColor(java.awt.Color.cyan);
         
iplus2.getStack().getProcessor(image.getCurrentSlice()).drawString( "x",
x+40, y);

         iplus2.updateAndDraw();

Switching the drawString() command for a putPixel(x, y, pixel) command
works fine...

This is on a RGB image stack.

Many thanks
Andrew
Reply | Threaded
Open this post in threaded view
|

Re: drawString help

Michael Schmid
Hi Andrew,

sorry, quite a late response; maybe you have found it in the  
meanwhile anyhow.

ImageStack.getProcessor creates a new ImageProcessor each time; any  
information written to the previous ImageProcessor gets lost with it.  
So you need:

      ImageProcessor ip = iplus2.getStack().getProcessor
(image.getCurrentSlice());

ant then ip.setFont, ip.setColor, ip.drawString.


Michael
________________________________________________________________

On 29 Jun 2011, at 13:34, Andrew French wrote:

> Hi everybody
>
> Anyone have any ideas why the following doesn't draw any text?
>
>         Font f = new Font("Helvetica", Font.PLAIN, 72);
>         iplus2.getStack().getProcessor(image.getCurrentSlice
> ()).setFont(f);
>         iplus2.getStack().getProcessor(image.getCurrentSlice
> ()).setColor(java.awt.Color.cyan);
>         iplus2.getStack().getProcessor(image.getCurrentSlice
> ()).drawString( "x", x+40, y);
>
>         iplus2.updateAndDraw();
>
> Switching the drawString() command for a putPixel(x, y, pixel)  
> command works fine...
>
> This is on a RGB image stack.
>
> Many thanks
> Andrew