Author Topic: ImageSolver hangs PixInsight (on stargenerated image)  (Read 1863 times)

Offline OldSkyEyes

  • Newcomer
  • Posts: 46
My plan was to image solve this picture https://www.flickr.com/gp/eyeken/ax0Z98 and add labels.
(as an exercise to learn the program)
But it always failed, no matter what I tried.

So I wanted to start from an image that was generated that would certainly work right? NO! even worse it hangs.

1) generate starts image (no problem)
2) imagesolve the generated image, starts good but then hangs, (memory usage keeps jumping between 0.9 and 2 GB)
see attached pictures to see when it hangs.

I added the 2 icon files (xpsm) so you can easily reproduce it. (PPMX.bin path will need to be updated)

Thanks

Offline oldwexi

  • PixInsight Guru
  • ****
  • Posts: 627
    • Astronomy Pages G.W.
Re: ImageSolver hangs PixInsight (on stargenerated image)
« Reply #1 on: 2017 May 05 17:17:07 »
Hi OldSkyEyes!
Despite the very low quality of your image, PixInsight solves and annotates your image nicely.
Find the link of a screenshot how to solve below.

For starfield generation i recommend to yo use the script    CatalogStarGenerator.
This creates a much more "natural" images with NO need to solve it! Its already solved.
On the bottom of the screenshot you see a part of this generated and annotated image.
http://www.werbeagentur.org/oldwexi/OldSkyEyes.jpg

Usually if it looks like the program hangs its either simply a to slow pc, to slow internet connection or
the parameter definition requires excessive computing time.

Usually the reasons for 99.9% of assumed bugs are located between keyboard and chair.

Gerald

Offline OldSkyEyes

  • Newcomer
  • Posts: 46
Re: ImageSolver hangs PixInsight (on stargenerated image)
« Reply #2 on: 2017 May 06 02:33:12 »
Hi,

Thanks for showing that it should be able to solve that bad quality image (you should have seen the image before I used PixInsight  ;) ) although it still fails with your settings on my PC, I will make a new thread for that since this is for the hanging bug.

I pretty sure it's stuck in a loop, you can try it, that's why I included the icon files, so developers can reproduce it.
I have a mid range computer https://pixinsight.com/benchmark/benchmark-report.php?sn=RJBOUS94RCW0QX40VI3FF42V79RID6WY  so not a slow PC. I like a new Ryzen 8 or 12 core though :) and this doesn't require internet connection and the parameters aren't ridiculous.

Offline oldwexi

  • PixInsight Guru
  • ****
  • Posts: 627
    • Astronomy Pages G.W.
Re: ImageSolver hangs PixInsight (on stargenerated image)
« Reply #3 on: 2017 May 06 06:20:52 »
Hi,
do you have a screenshot of the Solver Parameter used by you. where the solving did not work?
Gerald

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: ImageSolver hangs PixInsight (on stargenerated image)
« Reply #4 on: 2017 May 06 12:36:06 »
I can confirm that the script hangs following the instructions in the first message. I'll have to find what happens.

In any case, the suggestions by Gerald are good ones. CatalogStarGenerator can generate more realistic star fields.

Andrés.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: ImageSolver hangs PixInsight (on stargenerated image)
« Reply #5 on: 2017 May 06 12:41:26 »
Quote
CatalogStarGenerator can generate more realistic star fields.

Absolutely. The StarGenerator tool is outdated and needs a redesign. Use the CatalogStarGenerator script.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline OldSkyEyes

  • Newcomer
  • Posts: 46
Re: ImageSolver hangs PixInsight (on stargenerated image)
« Reply #6 on: 2017 May 06 13:16:45 »
Ok, I will avoid the stargenerator.

Hi,
do you have a screenshot of the Solver Parameter used by you. where the solving did not work?
Gerald
I got a result, it didn't work before because I had align algorithm set to Triangle instead of Polygons.
Thanks for the help.
FYI When it failed I got this default output:
Code: [Select]
run --execute-mode=auto "C:/Program Files/PixInsight/src/scripts/AdP/ImageSolver.js"

Processing script file: C:/Program Files/PixInsight/src/scripts/AdP/ImageSolver.js

MultiscaleLinearTransform: Processing view: _785_ABE_ABE_RGB_VNG_stars_denoised
Starlet transform: done
Multiscale reconstruction: done
Normalizing sample values: done
285.289 ms
Seed parameters for the plate solving:
   Image coordinates: RA=23 37 21.905, Dec=+43 56 52.10
   Resolution: 46.033802684235596
Starting StarAlignment iteration

StarGenerator: Global context

Gnomonic Projection
Projection center ....... ?=354.34127 ?=+43.94781
Field of view ........... H=67.74850 V=67.74850
Right ascension range ... ?E=285.07142 ?W=63.61113
Declination range ....... ?S=+8.78823 ?N=+77.82206

Searching stars...
5030 stars found
Applying proper motions, epoch = 2451544.5: done
Generating output CSV file: C:/Users/ken/AppData/Local/Temp/stars.csv
Projecting stars: done
4920 stars in projection
138.037 ms

StarAlignment: Processing view: _785_ABE_ABE_RGB_VNG_stars
_785_ABE_ABE_RGB_VNG_stars:
Structure map: done
Detecting stars: done
125 stars found.
Blending grayscale bitmap: done
3.545 s
Using Triangle similarity algorithm

StarAlignment: Processing view: _785_ABE_ABE_RGB_VNG_stars
C:/Users/ken/AppData/Local/Temp/stars.csv:
Scanning star data: done
4920 stars.
_785_ABE_ABE_RGB_VNG_stars:
Structure map: done
Detecting stars: done
125 stars found.
* Reference image: Limiting to 2000 brightest stars.
Matching stars: done
74 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #2
useScaleDifferences=true
* Reference image: Limiting to 2000 brightest stars.
Matching stars: done
76 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #3
useScaleDifferences=false
* Reference image: Limiting to 250 brightest stars.
Matching stars: done
43 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #4
useScaleDifferences=true
* Reference image: Limiting to 250 brightest stars.
Matching stars: done
45 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #5
useScaleDifferences=false
* Reference image: Limiting to 125 brightest stars.
Matching stars: done
44 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #6
useScaleDifferences=true
* Reference image: Limiting to 125 brightest stars.
Matching stars: done
46 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #7
useScaleDifferences=false
* Reference image: Limiting to 60 brightest stars.
* Target image: Limiting to 60 brightest stars.
Matching stars: done
24 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #8
useScaleDifferences=true
* Reference image: Limiting to 60 brightest stars.
* Target image: Limiting to 60 brightest stars.
Matching stars: done
20 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #9
useScaleDifferences=false
* Reference image: Limiting to 30 brightest stars.
* Target image: Limiting to 30 brightest stars.
Matching stars: done
8 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #10
useScaleDifferences=true
* Reference image: Limiting to 30 brightest stars.
* Target image: Limiting to 30 brightest stars.
Matching stars: done
9 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #11
useScaleDifferences=false
* Reference image: Limiting to 15 brightest stars.
* Target image: Limiting to 15 brightest stars.
Matching stars: done
*** 3 star pair matches found - need at least six matched stars.
* Previous attempt failed - this is try #12
useScaleDifferences=true
* Reference image: Limiting to 15 brightest stars.
* Target image: Limiting to 15 brightest stars.
Matching stars: done
*** 0 star pair matches found - need at least six matched stars.
* Previous attempt failed - this is try #13
useScaleDifferences=false
* Reference image: Limiting to 8 brightest stars.
* Target image: Limiting to 8 brightest stars.
Matching stars: done
*** 0 star pair matches found - need at least six matched stars.
* Previous attempt failed - this is try #14
useScaleDifferences=true
* Reference image: Limiting to 8 brightest stars.
* Target image: Limiting to 8 brightest stars.
Matching stars: done
*** 0 star pair matches found - need at least six matched stars.
* Previous attempt failed - this is try #15
useScaleDifferences=false
* Reference image: Limiting to 500 brightest stars.
Matching stars: done
52 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #16
useScaleDifferences=true
* Reference image: Limiting to 500 brightest stars.
Matching stars: done
60 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #17
useScaleDifferences=false
* Reference image: Limiting to 1000 brightest stars.
Matching stars: done
65 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #18
useScaleDifferences=true
* Reference image: Limiting to 1000 brightest stars.
Matching stars: done
68 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #19
useScaleDifferences=false
* Reference image: Limiting to 4000 brightest stars.
Matching stars: done
81 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #20
useScaleDifferences=true
* Reference image: Limiting to 4000 brightest stars.
Matching stars: done
70 putative star pair matches.
Performing RANSAC: done
*** Error: Unable to find an initial set of putative star pair matches
<* failed *>
*** Error: The image could not be aligned with the reference star field
Please check the following items:
The initial coordinates should be inside the image.
The initial resolution should be in a factor of 2 of the correct value.
Adjust the sensitivity so the script detects most of the stars in the image without mistaking noise for stars.
The catalog should be matched to the image. Choose the catalog and magnitude filter so the number ofstars extracted from the catalog is similar to the number of stars detected in the image.
*** The image could not be solved.
This is usually because the initial parameters are too far from the real metadata of the image