WOW! I don't know how perfectly you want it to be, but judging from the image you've posted, you've got a nearly perfect result IMO!
Yes, it's looking good, but actually simple way is better (method A. I got better result of frame adaptation, but I got bad geometry. )
Do you mean zero rejection in ImageIntegration? In such case, I already implemented it as you know.
Yes, but actually ClipLowRange doesn't work properly. Look again to the bug report about
ImageIntegration problem.
What do you mean by "I can't integrate 4 parts to one mosaic without mask" ??
OK. I align all images to StarGen and integrate 4 pieces of mosaic (see pic1). So, I got a geometrically perfect and aligned 4 pieces puzzle! 8)
If you look closely to interception area (see pic2), you can see the problem.
I think fill the problem area with zeros. It's will allow to use PixelMach or new "frame adaptation tool" to integrate perfect mosaic.
In fact, it has already been implemented. The frame adaptation routine automatically rejects all pixels <= 0 and >= 0.92. Zero pixels are not being taken into account.
Sounds good! How soon we will celebrate Independence Day of "frame adaptation tool" ? I want to avoid double alignment.
Add:
But really, the frame adaptation routine automatically rejects all pixels <= 0 and >= 0.92 or Compute Intersection doesn't work (with images shown in pic1)... I got pure black image:
See console report:
StarAlignment: Processing view: _0001
_0000:
Structure map: 100%
Detecting stars: 100%
4789 stars found.
_0001:
Structure map: 100%
Detecting stars: 100%
2345 stars found.
Computing intersection ...
Intersection:
R1 : { 107, 1971, 2081, 2143} 190 stars
R2 : { 107, 1971, 2081, 2144} 201 stars
?21 : 0°
Matching stars ...
149 putative star pair matches.
Performing RANSAC ...
132 star pair matches in 414 RANSAC iterations.
Summary of model properties:
Inliers : 0.886
Overlapping : 1.000
Regularity : 0.914
Quality : 0.867
Root mean square error:
?RMS : 0.661 px
Average RMS error deviation:
?RMS : 0.317 px
Peak errors:
?xmax : 0.383 px
?ymax : 1.714 px
Transformation matrix:
+1.0117 +0.0061 -12.2719
+0.0004 +1.0240 -25.7375
-0.0000 +0.0000 +1.0000
Generating mosaic image: _0001_mosaic
Building 2D surface interpolation grid ...
2-D Surface Spline / Bicubic Spline Interpolation, c=0.30: 100%
Linear frame adaptation functions:
y0 = 0.000022 + -0.000001·x0