Author Topic: Tiny Centroid script  (Read 10813 times)

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Tiny Centroid script
« Reply #15 on: 2010 August 20 14:02:36 »
Hi Carlos,

an earlier program I wrote (not in PCL) moved a box along the image and added up the total intensity in the box, remembering the brightest one. PJSR is too slow to do this in a meaningful way but doing a blur before finding the max pixel might be possible. Just grabbing the max pixel didn't give a good answer. Or perhaps my reworked centroid was still wrong :)

How would I blur? I looked through the modules but didn't see anything stand out.

Thanks for the other suggestions, sounds interesting :)
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Tiny Centroid script
« Reply #16 on: 2010 August 20 15:13:47 »
Ok, I added the 'remove mean twice' code. Probably useful for beginning PJSR coders to see how to instantiate a process, copy code from the history explorer and apply it to a view.

Renamed to 'opticalcenter' to better reflect its purpose.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Tiny Centroid script
« Reply #17 on: 2010 August 20 15:15:16 »
Right now, with wavelets, disable a pair of layers. If you are not in a hurry, I'll update the code for the GaussianBlur module, and upload it again.
Also, you may use MorphologicalTransform.
Regards,

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

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Tiny Centroid script
« Reply #18 on: 2010 August 20 15:22:52 »
Ah yes, MT. Thanks Carlos.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity