Skip to content

Is there an example on how to use mosaicing? #287

Answered by Nakilon
Nakilon asked this question in Q&A
Discussion options

You must be logged in to vote

I guess I tried the wrong function. phasecor seems to be what I need:

 img12res.phasecor(img11res).stats.to_a.drop(1).transpose[8,2]
=> [[[0.0], [0.0], [0.0]], [[23.0], [23.0], [23.0]]]

These as I understand are the shifting candidates per band.

What I don't yet understand is why it's #<Image 160x90 double, 3 bands, b-w> -- being b-w but with 3 bands makes the .write_to_file save both dark and light pixels as white. How do I switch the interpretation? .copy(interpretation: :srgb)

P.S.: and it's weird that when I call it on two similar (i.e. no shift needed) or even identical images it's all a noise and no bright pixel in the left-top corner.
P.P.S: also there is a true point and three fa…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Nakilon
Comment options

Comment options

You must be logged in to vote
2 replies
@Nakilon
Comment options

@Nakilon
Comment options

Answer selected by Nakilon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants