Subscribe to this thread
Home - General / All posts - Mosaicking in V8?
Raff1345 post(s)
#26-Jan-24 23:16

Hello

Perhaps you know how to mosaic all image components into one big image in V8 ?

I am looking similar script here but I cannot find.

Thank you,

R

oeaulong

531 post(s)
#27-Jan-24 00:22

If small numbers of images, then they can be copy/pasted together which will dynamically grow the resulting image. Alternatively, if the image reside in a folder they can be stitched as an image library. Check out the help for image library.

The mosaic Merge of version 9 is a newer feature.

Raff1345 post(s)
#27-Jan-24 00:53

Thank you, oeaulong.

Yes, I know I can copy/paste them manually. Laborious.

No, they are not in a folder. I would have to export them from Manifold first to the folder. The same. Laborious.

Yes, I know M9 can do that. But I am stubborn with M8 :) Why. Because when I make a snapshot of such big image later, it is better rendered in M8 than M9. M9 just blur the image too much during rendering. Slightly, but I can see the difference.

I have both, M8 and M9, but for some things I still prefer M8.

R.

Dimitri


7,464 post(s)
#27-Jan-24 07:37

[deleted - wrong edit]

Dimitri


7,464 post(s)
#27-Jan-24 07:38

M9 just blur the image too much during rendering. Slightly, but I can see the difference.

9 is generally much sharper than 8, as it does a more sophisticated job rendering pixels. It sounds like in 9 you might not be setting the Resample option to match what you want, or the way you are reprojecting images should use a different sub-pixel reprojection method. 8 doesn't have those controls.

Raff1345 post(s)
#27-Jan-24 01:11

But, oeaulong, you pointed me something :)

That I can do some tasks in M8, save them, and later open in it in M9 and do other tasks.

Thank you. So simple idea and I didn't think about it :)

oeaulong

531 post(s)
#27-Jan-24 02:14

I understand the unwieldiness of some of these operations. You are welcome, of course. I too keep using both v8 and v9. There are just some operations that I can get to very quickly, manually in 8. You can set up v9 as a data source that 8 consumes, a little cumbersome but to do the round-trip between the two it could be handy. Could you bring your images into v9 get them to a stitched together state with pyramidal levels and export to an ECW to use in v8, assuming you didn't need to edit the images?

artlembo


3,417 post(s)
#27-Jan-24 15:48

Like oeaulong, I am very fond of the mature UI tools in 8, especially the ability to create forms in the 32-bit version. If you want/need to stay in 8, you can use a very short script to do what you want. Please note, this is a kludge, and took less than 2 minutes to write. There are many ways to improve upon the script.

In this script, I have a .map with a bunch of surfaces (they could be images, too). I took one of the surfaces and renamed it 'aaa' (the first kludge hack). Then, I simply ran this script (note, do this in the 64-bit version):

Sub Main

 Set theCompS = document.ComponentSet

 Set baseSurface = theCompS("aaa")

 for each comp in theCompS

 if comp.TypeName = "Surface" then

 if comp.Name <> "aaa" then

 comp.Copy

 baseSurface.Paste true

 end if 

 end if

 next

End Sub

Here's what it does - it cycles through each Surface in my map project, copies the surface, and then pastes the surface into the surface I call 'aaa'.

Now, 9 has a nicer tool, and 9 may be faster to do it. But, I can literally merge all the DEMs in a 900 sq. meter county in less time than it takes to drink a cup of coffee.

Of course in this case, I've hard coded a surface named 'aaa', and I've also assumed that every Surface component in the .map file is one that I wish to merge. But, you get the idea. This is easy to do, and doesn't require you to manually copy/paste each surface.

If you want to contact me offline, I can help you make this a little more user friendly and adaptable.

--- long live 8

Raff1345 post(s)
#27-Jan-24 16:32

Sure, I want, artlembo. I will contact you :)

And for me for some tasks I prefer V9 and for some others V8. And I like both. The interfaces are a little different, but both nicely designed (I mean the idea behind them).

--- Long Live 8!

Raff1345 post(s)
#27-Jan-24 16:36

When exported as a big from V9, then I needn't give them back to V8. Then I need them for other software.

danb

2,064 post(s)
#27-Jan-24 22:50

From memory, I think that in M8 you can put all your images in a map zoom to Native scale and then right click on the map and choose 'Make Image' to get a mosaic layer at the native resolution of the imagery.

I think this is correct though as others say M9 is the way to go for image mosaics as it is very rapid.


Landsystems Ltd ... Know your land | www.landsystems.co.nz

tomasfa
185 post(s)
#07-Feb-24 15:14

Hi this is exactly, how I do mosaicking in v8. It's simple and less steps.

Manifold User Community Use Agreement Copyright (C) 2007-2021 Manifold Software Limited. All rights reserved.