SourceXtractorPlusPlus icon indicating copy to clipboard operation
SourceXtractorPlusPlus copied to clipboard

Call sourcextractor++ from Python

Open ayllon opened this issue 2 years ago • 4 comments

SourceXtractorDemo.py can help you see how it can be used.

Closes #179

ayllon avatar Sep 22 '22 07:09 ayllon

The last commits should make the handling of errors and multi-threading somewhat more reliable. Not yet supported: error interception from a custom output handler (you can write one, but context does not expose the errors, should be relatively easy to do so, though), nor custom segmentation.

ayllon avatar Oct 13 '22 11:10 ayllon

Not yet supported: error interception from a custom output handler (you can write one, but context does not expose the errors, should be relatively easy to do so, though), nor custom segmentation.

Both done! But no custom grouping yet.

CustomSegmentationDemo.py is an example of a very naive custom segmentation that sends sources to sourcextractor++. Good for the demo?

Of course, you can not rely on this custom segmentation, but looking at the cross-match

crossmatch

the rest of the pipeline seems to pick well on these objects.

ayllon avatar Oct 14 '22 12:10 ayllon

And a primitive custom grouping.

ayllon avatar Oct 17 '22 10:10 ayllon

And here is the live preview demo

It is not intended for production. I have my doubts it will scale! It may be better to add the pixels by hand rather than having one artist per source, but you can get an idea of how to do it.

ayllon avatar Oct 20 '22 13:10 ayllon