Author Topic: PCL: ImageInspection > StarMonitor module  (Read 25709 times)

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
PCL: ImageInspection > StarMonitor module
« on: 2011 December 02 11:19:57 »
Hi,
The module monitoring selected folder for new images.fit. And if one new image found the module calculate FWHM(gaussian) for all not over-burned stars, show top bright and dim stars data. And calculative average FWHM.
Current version is very simple, but in future I hope to add audible alarm, 3D field curvature and etc interactive services.

How to use: Select folder, press play, drop new image to selected folder ( usually your camera must do it )  and see Console output.
Also you can execute on View.
Note: You can close module interface and if you don't press pause button the module will continue monitoring folder and report to console.

How to install:
The module required OpenGL freeglut 1.8.1
1)
For Windows: Download freeglut package ( for example this one http://files.transmissionzero.co.uk/software/development/GLUT/older/freeglut-MSVC-2.8.1-1.mp.zip) , unpack it and put only \freeglut\bin\x64\freeglut.dll to PixInsight\bin folded. Note in the package there are 32 or 64 version.
For Linux: apt-get install freeglut3-dev
2) unpack StarMonitor module to PixInsight\bin folded.
3) Run PixInsight > Menu > Process > Modules > Install Modules

How to build from sources code:
1) Extract from freeglut sources "include/GL" to "PCl/include/GL"
2)build cminpack-pxi from PCL sources.
3)Makefile Generator scripts:
Windows:
extraDefinitions: CMINPACK_NO_DLL
extraLibraries: cminpack-pxi freeglut
So, in your PCLLIBDIR64 should be present file cminpack-pxi.lib and freeglut.lib
Linux:
extraLibraries: cminpack-pxi glut GLU GL

Bin for PI1.8.1083:
Linux64
Win32
Win64

Bin for PI1.8.4.1195:
Linux64
Win64

Best regards,
Nikolay.

v1.0.1.0001
v1.0.2 Add File buttons, Alert command and settings.
v1.0.3 Add 3D View via OpenGL
v1.0.4 Add log and stdInput for alert command executing. build for PI1.8.1083 Linux/Win
v1.0.5 build for PI1.8.4.1195
« Last Edit: 2016 February 03 05:59:46 by NKV »

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: PCL: ImageInspection > StarMonitor module
« Reply #1 on: 2011 December 02 11:21:05 »
.
« Last Edit: 2012 April 01 09:36:59 by NKV »

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: PCL: ImageInspection > StarMonitor module
« Reply #2 on: 2011 December 02 16:15:22 »
i can build this for osx if you want.

Offline astrospotter

  • Newcomer
  • Posts: 41
Re: PCL: ImageInspection > StarMonitor module
« Reply #3 on: 2012 January 18 23:30:07 »
Hello and thanks for the lead pointing to your tool that you posted as a reply to my thoughts on DynamixPSF.

Use of PixInsight as a dynamic image analysis of value in the field would be a great enhancement to the platform.
I don't even consider use of PixInsight in the field as I capture with MaximDL but this tool may just change my view on where PixInsight is of value and expand it to the field.

I am going to spout random thoughts that come to mind and consider the things below only as blue-sky ideas to assist you in your thoughts on what  you would like to do with the tool.   I think what you have already said is very exciting and would be wonderful.

Now for the 'blue sky' thoughts ...

For real field use a large quantity of raw numbers in a table is very nice for quick focus check but can be a bit  complex for weary eyed imagers who may also wish to know WHERE each line comes from so I hope your comment about thoughts on generation of a 3D picture are something you are seriously considering.  That would bring high value to use in field and at home in rating subframes prior to usage. 

Perhaps a checkbox to then show values grouping the values much like the script Aberration Spotter does may help.  This would be one more column perhaps that has a value of a 1-2 char code like   C=Center,  UC = upper center, UR=upper right, LR=lower right, LC = lower center, LL=lower left and UL=upper left.    This is really analogous to AberrationSpotter and in fact if an 'aberrationSpotter' could be run on the just generated file THEN run your tool (on the un-stretched data of course) that would be awesome.

Not sure how to present the data of  elongated FWHMx x FWHMy  along with theta in a picture but here are some blue sky thoughts.

Not sure if the platform supports this but ...   Click on a spot on your 3D curve and  several numbers like FWHMx,FWHMy and Theta show up much like the pixinsight window that comes up for zoom of an image. 

Here is a real 'wild' concept but this is after all a blue-sky thought process so application of the concepts we see in wind charts are perhaps appropriate?   A totally round symetric FWHM might be a circle with larger circles being worse FWHMx (normalized to the best and lowest FWHM as a small dot).  Then the concept of non-symetric FWHM would be shown as line segments, again fatter and thinner based on how 'wide' the elongated star is.

This is all wild stuff and a bear to code so consider all of this as wild thoughts that may be over the top but may get your thought process going in some way.

Whatever comes of it INCLUDING what you have already done I thank you for sharing this very cool idea and field tool

Mark

Offline RBA

  • PixInsight Guru
  • ****
  • Posts: 511
    • DeepSkyColors
Re: PCL: ImageInspection > StarMonitor module
« Reply #4 on: 2012 January 19 02:50:38 »
This module might be useful to more people if first it was implemented to work on a selectable file - ie. a file you can select by "opening" it. Then, with that functionality already there, add the "folder monitoring" functionality, either as a separate module or as an add-on.

Come to think of it, a module that does the folder monitoring and once a new file is detected, being able to execute a second module (selectable ahead of time) on the detected image file might be even better.

Just sharing a couple of ideas...

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: PCL: ImageInspection > StarMonitor module
« Reply #5 on: 2012 January 19 06:23:17 »
It would be nice to have a few of these functions in the blink script/module.
It could help choose a reference frame and eliminate bad guiding etc.

Max

Offline Jack Harvey

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 975
    • PegasusAstronomy.com & Starshadows.com
Re: PCL: ImageInspection > StarMonitor module
« Reply #6 on: 2012 January 19 06:28:34 »
Not sure how many but a few of us do use osx and a osx ver would be great.
Jack Harvey, PTeam Member
Team Leader, SSRO/PROMPT Imaging Team, CTIO

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: PCL: ImageInspection > StarMonitor module
« Reply #7 on: 2012 January 20 09:50:14 »
well, i'd need the source and i don't think Nikolay has released it..

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: PCL: ImageInspection > StarMonitor module
« Reply #8 on: 2012 January 22 03:38:21 »
Hello and thanks for your ideas. I will try to realize in near future.

About source code, sorry... i can't publish it, because Juan will kill me( I stole some codes from him ).

Best regards,
Nikolay.

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: PCL: ImageInspection > StarMonitor module
« Reply #9 on: 2012 January 22 13:35:19 »
no problem, proprietary is proprietary.

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: PCL: ImageInspection > StarMonitor module
« Reply #10 on: 2012 January 30 02:44:19 »
v 1.0.2
Add many features. See post #1

Best regards,
Nikolay.

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: PCL: ImageInspection > StarMonitor module
« Reply #11 on: 2012 March 29 12:31:02 »
I got new skill. Now I can use OpenGL inside PixInsight. 8)
See screen in attachment. It's one frame from animated 3D window. The window generated in PixInsight via Delaunay triangulation and dynamically shown via OpenGL how it look from different camera positions.

If you want to see how OpenGL and PixInsight work together:
There are binaries for PI Win32 in attachment . Including FreeGlut.dll
Put it in PixInsight "bin" folder and install the module.

Offline RBA

  • PixInsight Guru
  • ****
  • Posts: 511
    • DeepSkyColors
Re: PCL: ImageInspection > StarMonitor module
« Reply #12 on: 2012 March 29 12:42:32 »
Could you produce a Win64 module?

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: PCL: ImageInspection > StarMonitor module
« Reply #13 on: 2012 March 30 10:28:12 »
Could you produce a Win64 module?
Of course I can, but you can install PI32 on Win 64 and try it.

Anyway, I implement it into StarMonitor. Look at screen. Please wait some time while i polish new version.


Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: PCL: ImageInspection > StarMonitor module
« Reply #14 on: 2012 April 01 10:32:58 »
v1.0.3 Win32/64 released. Binaries in first post.
+ 3D View. Module draw curvature according FWHM data for all detected stars in the image.

How to install:
The module required OpenGL freeglut
1) Download freeglut package ( for example this one http://files.transmissionzero.co.uk/software/development/GLUT/freeglut-MSVC.zip) , unpack it and put only freeglut.dll to PixInsight/Bin folded. Note in the package there are 32 or 64 version.
2) unpack StarMonitor module to PixInsight/Bin folded.
3) Run PixInsight > Menu > Process > Modules > Install Modules

How to use:
1) Try Demo mode: Push Start( Green cube in 3D show section ). It's demonstrate real time 3D Voronoi and Delaunay triangulation. :D
2) Ok, now close 3D view window and add normal astronomical file. Wait until PSF processing finished, select the file( one click on file name), and push Green cube. If your image have field curvature or field rotation, you should see problematic zones in red color.

Any questions? Any idea? Welcome!

Best regards,
Nikolay.