Author Topic: Gradient Domain Operations, take 3 (was: Gradient Domain HDR Compression)  (Read 33796 times)

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
I tried compiling this on OS X, and I ran into some issuese...

...I'm only pasting some of the error...

Code: [Select]

 
g++ -arch i386 -Xarch_i386 -mmacosx-version-min=10.5 -fPIC -dynamiclib -install_name @executable_path/GradientDomain-pxm.dylib -L"/Users/draphael/PCL/lib/macosx/x86" -L"/Applications/PixInsight32.app/Contents/MacOS" -o "/home/georg/Gradients/macosx/g++/x86/Release"/GradientDomain-pxm.dylib ./x86/Release/GradientsBase.o ./x86/Release/GradientsHdrCompression.o ./x86/Release/GradientsHdrInstance.o ./x86/Release/GradientsHdrInterface.o ./x86/Release/GradientsHdrParameters.o ./x86/Release/GradientsHdrProcess.o ./x86/Release/GradientsMergeMosaic.o ./x86/Release/GradientsMergeMosaicInstance.o ./x86/Release/GradientsMergeMosaicInterface.o ./x86/Release/GradientsMergeMosaicParameters.o ./x86/Release/GradientsMergeMosaicProcess.o ./x86/Release/GradientsModule.o ./x86/Release/RgbPreserve.o -lpthread -lPCL-pxi
Undefined symbols for architecture i386:
  "global constructors keyed to _ZN3pcl5AlphaEi", referenced from:
      anon in GradientsBase.o
  "global constructors keyed to _ZN3pcl23GradientsHdrCompressionC2Ev", referenced from:
      anon in GradientsHdrCompression.o
  "pcl::GradientsHdrCompression::GradientsHdrCompression()", referenced from:
      void pcl::GradientsHdrEngine::Apply<pcl::UInt8PixelTraits>(pcl::Generic2DImage<pcl::UInt8PixelTraits>&, pcl::GradientsHdrInstance const&)in GradientsHdrInstance.o

David Raphael

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Sorry, can't help you with this.

Is this with the PCL version released today? I did not yet try it with that one.

Maybe you can use the version that Juan provided in http://pixinsight.com/forum/index.php?topic=3211.msg22047#msg22047

Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Hi Georg

Have you made any head way  ;)

Harry
Harry Page

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
The one that you linked worked.  I'll test it out and let you know how it goes!

Best,
Dave
David Raphael

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Isn't Juan's version avalaible through the "development" repository (for Mac)?
Regards,

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

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
Nope - I added the repository, and it didn't seem to find anything.  I'm running the 32-bit version...
David Raphael

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
And it isn't working on my Windows 64-bit install either...

David Raphael

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
I guess it is because the repository indicates an older version of PixInsight core:

Code: [Select]
   <platform os="windows" arch="x86_64" version="1.7.0.695:1.7.0.698">
      <package fileName="20110703-windows-x86_64-module.zip"
               sha1="9407cdb8534cadf6d272a6a72cfcafa925424e8d"
               type="module"
               metadata="20110703-module"/>
   </platform>

I am running 1.7.0.0702

/d
David Raphael

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Sorry for the mistake —I simply forgot to update the development repository after the release of 702. This is now fixed and should work correctly; let me know otherwise.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
No Problem!

The module worked great so far for me.  I attached a screenshot of a sample mosaic I'm working on.

David Raphael

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Hmmm... I feel that are still some unmatched features, or at least, you can tell differences in color. Georg, is the merge done only in the luminance?
Regards,

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

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Hi David,
not bad! Thanks for testing this. Some questions and remarks:
- what size is this mosaic? It appears to be much larger than anything I tried on my modest Linux machine.
- how long did the process run for this mosaic? Do you feel that runtime is acceptable?
- Some of your unmerged images have strong background gradients close to their borders. These are still visible in the merged images. I guess that either a DBE (before merge) or removing this part of the images would improve the result.

Hi Carlos,
no, the merge happens separately on each color channel. I suppose that the remaining artifacts are caused by the strong background gradients mentioned above.

Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Yes... so, be need to merge the gradients of those images... I'm wondering if there could be a multiscale approach to this.
Regards,

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

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
Hi David,
not bad! Thanks for testing this. Some questions and remarks:
- what size is this mosaic? It appears to be much larger than anything I tried on my modest Linux machine.
This is a 6 panel mosaic that is approx 7000 x 7000
Quote
- how long did the process run for this mosaic? Do you feel that runtime is acceptable?
About 5 minutes - definitely acceptable
Quote
- Some of your unmerged images have strong background gradients close to their borders. These are still visible in the merged images. I guess that either a DBE (before merge) or removing this part of the images would improve the result.
Yea - it was a quick and dirty effort.  I am redoing it now and I will let you know how that goes.

David Raphael

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
Well - that didn't go very well...

I've attached the result of my efforts - this time I removed the gradients prior to using the Merge Mosaic!  But something must be wrong with how I am doing it...

Let me know what you think.
David Raphael