|
On Saturday 04 February 2006 10:22, Pedro Alejandro Herve Fernandez Carrera
Licenciatura en Cs.Biologicas wrote:
> Hi all, does someone know how to make a particle in an image bigger, i�m
> working with quite a large stack (1800 images), and i just need to make one
> particle looks bigger. i�m using the multitraker plugin to track the
> movement of the particle (in this case an insect).
> if someone knows, please.
Morphology way (can be automated, but dilation deletes a bit of detail):
You can (binary images only):
1 Determine the XStart and YStart of the particle to enlarge,
2 Create a new empty image and set the XStart and YStart pixel "on" (the rest
is off)
3 Use BinaryReconstruct plugin (at my site, in the morphology archive) and
reconstruct using the original as the mask and the new image (with a single
pixel set as the seed).
This creates a new image with only your particle
4 Now you can Dilate the image as many times as you want
5 You Add it (or subtract depending on you foreground/background settings) to
your original image.
Cut & Paste way (a bit convoluted but will preserve the shape of the
particle):
Or, you can
1 determine the XStart, Ystart and the centre of mass of the particle,
2 reconstruct is as above,
3 create an ROI that contains the image, (the image is background everywhere
else, so you can "surround" the particle with a searching ROI, or you can use
the Particles8_Plus plugin to determine the ROIX1 ROIY1 ROIX2 ROIY2
coordinates of the particle.
4 Set the ROI to those coordinates and crop
5 Resample and enlarge the particle, and determine the centre of mass in this
image.
6 Now add the resampled image (enlarged) to the original translated (offset)
so the centre of mass of the original and the cropped version coincide.
Magic Wand way (by hand or automated):
Click with the magic wad tool on the particle
go to edit> Selection> enlarge
All these will produce different "enlarge particles"
Cheers,
Gabriel
|