Author Topic: Issue with Defect Map  (Read 6650 times)

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
Issue with Defect Map
« on: 2011 January 24 20:47:46 »
I'm trying to execute a defect map on an image...

I generated an image with 1 values for hot and dead pixels and 0 values for everything else.

When I go to execute the defect map against an image, it just sits at 0% progress on the morphological transformation.  I've tried it on 64bit and 32bit Windows. 

I may go try it on my Mac next...

If anyone else has had any trouble - let me know!

Cheers,
Dave
David Raphael

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
Re: Issue with Defect Map
« Reply #1 on: 2011 January 25 12:55:49 »
It works fine on my OS X install.

Any ideas?
David Raphael

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Issue with Defect Map
« Reply #2 on: 2011 January 26 07:10:35 »
Hmmm... it may be something related to the parallel processing. Try disabling it. Execute this on the console: parallel --disable
Regards,

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

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
Re: Issue with Defect Map
« Reply #3 on: 2011 January 27 12:55:20 »
I'm on vacation away from the horror of Windows machines :-P

I'll try this when I get back.

Thanks for the thoughts.

Cheers,
Dave
David Raphael

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
Re: Issue with Defect Map
« Reply #4 on: 2011 February 02 07:52:32 »
I disabled parallel processing, but this didn't eliminate the issue.

Thoughts?
David Raphael

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
Re: Issue with Defect Map
« Reply #5 on: 2011 February 02 08:10:53 »
Just for grins - I reinstalled PixInsight ...

Now I am getting a nasty exception.  I'm gonna reboot since I've had the VS debugger attached etc...maybe there is some issue with the library loading...


David Raphael

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
Re: Issue with Defect Map
« Reply #6 on: 2011 February 02 08:52:13 »
Ok - the problem is still there. 

Can anyone else confirm that defect_map is working on Windows 7 x64?

David Raphael

Offline Enzo De Bernardini

  • PTeam Member
  • PixInsight Addict
  • ***
  • Posts: 274
  • Resistance is futile.
    • Astronomí­a Sur
Re: Issue with Defect Map
« Reply #7 on: 2011 February 02 09:06:33 »
Can anyone else confirm that defect_map is working on Windows 7 x64?

I can confirm a similar problem on Windows XP 32b, only with structure settings Minimum, Maximum and Median (Mean and Gaussian works perfectly)

Greetings,

Enzo.

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Issue with Defect Map
« Reply #8 on: 2011 February 02 09:31:41 »
I'm going to check the code...
Regards,

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

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
Re: Issue with Defect Map
« Reply #9 on: 2011 February 02 10:09:55 »
Is the source that comes with PCL 100% the same as what is distributed?  Because I compiled it from source, and it behaved differently...

Also - I don't mind looking at the source either when it's available...

Cheers,
dave
David Raphael

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Issue with Defect Map
« Reply #10 on: 2011 February 02 14:11:47 »
It should be the same... The code I sent to Juan at first was different, since he optimized it and rewrote some functions, but basically is the same thing. I don't see any problem there. Maybe it was a bug in the windows compilation... old code that went through.
Regards,

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

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
Re: Issue with Defect Map
« Reply #11 on: 2011 February 05 08:15:53 »
Juan - can you weigh in on this?

I compiled the code for the defect map from source, but it behaves differently than the library distributed.  Both crash, but at different points.  I'm happy to investigate, but I would need to make sure I am working with the authoritative source.

Thanks!
Dave
David Raphael

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
Re: Issue with Defect Map
« Reply #12 on: 2011 July 03 11:49:16 »
FWIW - I am still having a problem with the defect map.  Is anyone actually using this tool?
David Raphael

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Issue with Defect Map
« Reply #13 on: 2011 July 03 12:34:07 »
I used it a few weeks ago, without problems... Could you upload a screenshot with the parameters, and the defect map image?
Regards,

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

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
Re: Issue with Defect Map
« Reply #14 on: 2011 July 03 14:18:11 »
I thought I was having a problem still - but it is working.  I was using an inverted defect map which takes a "bit" longer to process :-)

Thanks,
Dave
David Raphael