Author Topic: list of pixel values  (Read 4512 times)

Hans Pleijsier

  • Guest
list of pixel values
« on: 2011 January 25 08:01:19 »
Dear PI-friends,

I am working on a perlscript that (1) takes in an array of values from 0 to 1, (2) identifies the maximum value and (3) evaluates the PSF
by returning some sort of number that provides the user with a general appreciation of the starimage.

Be aware: I did not refer to the FWHM-word in any way here ...   ;)

However ... now I am looking for a small script that produces a list or array of pixelvalues from 0 to 1.
The user selects a box of let us say 16x16, 32x32 or 64x64 pixels in a monochrome image in PI and then the script returns
the 256, 1024 or 4096 pixelvalues to the clipboard or a file.

I would not be surprised if this utility already exists in PI but I am unable to find it.
If it is not available in PI, I would appreciate a suggestion on how to build it or on which existing script to use as a starting point.

Many thanks in advance,

HP

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: list of pixel values
« Reply #1 on: 2011 January 25 08:17:49 »
See the Matrix definition, there may be something useful for you.
Regards,

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

Hans Pleijsier

  • Guest
Re: list of pixel values
« Reply #2 on: 2011 January 25 09:14:58 »
Carlos,
Thank you.
I understand that you are directing me towards some sort of a c++module in the programmers version of PI.
I was hoping to avoid these modules because I am not a programmer ... that is why I use perl ...

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: list of pixel values
« Reply #3 on: 2011 January 25 09:42:25 »
The Matrix class is implemented quite straightforward into the JS engine. Take look there, in the script editor.
Regards,

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

Hans Pleijsier

  • Guest
Re: list of pixel values
« Reply #4 on: 2011 January 25 09:49:32 »
I will take a look, thank you.