Author Topic: selecting a part of the picture to process  (Read 5289 times)

Offline cherodotou

  • Newcomer
  • Posts: 5
selecting a part of the picture to process
« on: 2011 July 05 20:05:47 »
Hello,

This is a picture of a brick from a scanner. I want to process just the brick in PixInsight, how can I do this? Bear in mind that the edges of the brick have an irregular and curvy shape.

Thank you.

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: selecting a part of the picture to process
« Reply #1 on: 2011 July 05 23:45:15 »
Create a mask that selects the brick, and apply it to the brick image. After that, all operations are limited to the brick pixels.
Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: selecting a part of the picture to process
« Reply #2 on: 2011 July 06 02:40:46 »
To create the mask, just extract the luminance, and apply a threshold (Binarize process).

I think that for most operations, you'll be fine with the mask. There may appear some boundary artefacts if you use convolutions or morphological filters, but in general it won't be a problem.
Oh, btw, if you want to extract statistical parameters, the easiest way is to create a preview inside the brick.
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com