Templot Club Archive 2007-2020                             

topic: 3823maps - feedback wanted
author remove search highlighting
 
posted: 24 Nov 2020 21:31

from:

Martin Wynne
 
West Of The Severn - United Kingdom

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
I mentioned earlier that it is now possible to load the NLS historic 25"/mile maps as tiled maps. Which is great news -- it means maps of any size can be easily captured at maximum zoom without any restriction caused by your screen size, or need to align multiple captures. It will be in the next program update.

I have since discovered that the highest zoom level available as original tiles is level 18 for the 25" maps. The higher zoom levels available on the NLS web site are actually implemented by upscaling the image in the browser. This means of course that capturing higher levels than 18 doesn't get you any more detail, the same level of detail is simply being zoomed larger.

Most browsers use a resampling image upscaler to provide a smoother result than a simple stretch of each pixel.

Such resampling isn't available in Templot when zooming background shapes on the trackpad, because at the high zoom levels we normally need it would take forever and reduce the screen response to a slow crawl through treacle.

But the result isn't very pretty or comfortable to work over:

1. map tiles as loaded:
2_241521_110000000.png2_241521_110000000.png

It can also be confusing -- see for example how the platform edge has merged with the rail above.

A few updates back I added a function to reduce the contrast of map images when working over them, which makes it a lot easier to see what you are doing -- here on the left:

2. low-contrast converted original:
2_241521_120000001.png2_241521_120000001.png

But it still doesn't match the screenshot captures from smooth browser resampling.

So I have found some old resampling code from Anders Melander which could be used in Templot, as a one-time conversion on the background shapes. It's very slow, several seconds per tile, but only needs to be done once.

The difficulty is that there are 7 different resampling algorithms available, with varying degrees of smoothing and speed, and each one can have an adjustable edge-effect setting. Mostly they are optimised for colour photographs, rather than scans of historic maps, so the default settings are not necessarily the best for our purpose. And then in each case there is the degree of zooming to apply. An utter minefield of different settings which would take me forever to evaluate.

From which I need to select 1 or maybe 2 options to offer in the background shapes. Here are some examples. In each case the original as loaded tile is on the right:

3. "Triangle" interpolation only. This is similar to the browser resampling for zoom level 19:
2_241521_120000002.png2_241521_120000002.png



4. "Triangle" interpolation with low-contrast conversion:
2_241521_120000003.png2_241521_120000003.png


5. "B-Spline" interpolation only:
2_241521_120000004.png2_241521_120000004.png


6. "B-Spline" interpolation with low-contrast conversion:
2_241521_300000000.png2_241521_300000000.png


Answers on a postcard. Which if any of these image effects would you find the most comfortable to work over? In each case the original loaded tile is on the right.

I think my preference is for image 5. above -- notice the improved separation between the platform edge and the rail.

There are of course several other settings you might use at the same time -- Templot can also make a negative image, and there are other colour schemes for the templates.

The use of these NLS maps is getting more popular for track planning, so it would be worthwhile finding the optimum screen display for them. This would be optional of course.

It's a pity the 50" maps aren't available for the whole country, but it's great that we now have almost full coverage for the 25" maps.

cheers,

Martin.

posted: 25 Nov 2020 09:14

from:

Phil O
 
Plymouth - United Kingdom

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Hi Martin,

I'm with you, I think version 5 is the best.

Cheers

Phil.

posted: 25 Nov 2020 09:34

from:

Tony W
 
North Notts. - United Kingdom

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Hi Martin.

I would second version 5.

Regards
Tony.

posted: 25 Nov 2020 11:41

from:

Martin Wynne
 
West Of The Severn - United Kingdom

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Thanks for the feedback. A majority there for the "Spline" interpolation.

But not so fast. :)

To illustrate the minefield I'm in, if the upscaling is increased it's not so clear-cut.

Going up to 720x720 pixels per tile instead of 512x512, the preference maybe swaps to the less intense "Triangle" interpolation (3. below), and "Spline" (4.) is a bit too fuzzy.

To confuse the issue further I swapped to the "bright night" colour scheme for the template:

2_250612_120000000.png2_250612_120000000.png


Zooming out to the more usual browser size, the differences are not so obvious. But we don't do track design at this level:

2_250612_120000001.png2_250612_120000001.png

We could go higher than 720x720, but memory usage increases dramatically, and screen response speed suffers. Maps can easily have 100 tiles or more.

I can also have a fresh think about the low-contrast functions. Maybe with the more intense interpolations it would actually be better to increase the contrast, for a cleaner background?

It seems clear that it's worth doing something to improve on the original loaded tiles, but deciding exactly what to do is tricky. And that's just for the 25" maps. There are also the 50" maps to consider.

Time for a boiled egg I think. :)

Martin.

posted: 25 Nov 2020 13:44

from:

Phil O
 
Plymouth - United Kingdom

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Martin,

I think it will be a difficult decision. Would it be possible to have a hands on trial version, I don't think just looking at the pictures is a fair test, as we all tend to work differently and screen size may also play a part.

I am looking at your latest post on my tablet and the differences are not great, when I have finished lunch, I will have a look on the laptop.

Phil

posted: 25 Nov 2020 14:39

from:

Phil O
 
Plymouth - United Kingdom

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Martin,

I have checked the pictures on the laptop and the images are more or less the same, perhaps it may be that the map area covered by the Lower image is larger than the one above it.

Phil.

posted: 25 Nov 2020 18:00

from:

Martin Wynne
 
West Of The Severn - United Kingdom

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Thanks Phil.

That's the problem, the different effects are going to vary widely on different screens.

Here's another idea, reducing to 2-tone greys:

2_251251_350000000.png2_251251_350000000.png 

Top left is original 256 tile reduced to 2-tone.

Bottom left is Triangle interpolation from 256 to 768.

Bottom right is Triangle interpolation from 256 to 768, followed by reduction to 2-tone. I think that might work quite well as a design guide.

The template is in bright-night colours.

In the end I'm probably going to have to do a full dialog with all these optional adjustments. But I was hoping to find a default setting which would give good results for most users in most cases.

cheers,

Martin.

posted: 25 Nov 2020 18:29

from:

Martin Wynne
 
West Of The Severn - United Kingdom

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
This is what that looks like in full:

2_251326_360000000.png2_251326_360000000.png

And working over it (bright-night colours):

2_251327_220000000.png2_251327_220000000.png

cheers,

Martin.

posted: 25 Nov 2020 19:20

from:

Phil O
 
Plymouth - United Kingdom

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
That looks ok to me. Thanks.

Phil.

posted: 26 Nov 2020 01:32

from:

Rob Manchester
 
Manchester - United Kingdom

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Hi Martin,

"Triangle interpolation from 256 to 768, followed by reduction to 2-tone" looks way better for my eyes. But then again nobody else has my eyes :) or my muddled brain :(

Rob


posted: 27 Nov 2020 15:58

from:

Martin Wynne
 
West Of The Severn - United Kingdom

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Rob Manchester wrote:
But then again nobody else has my eyes :) or my muddled brain :(

Nor mine. :)

I think I have given up on finding a single setting which gives the best results in all circumstances, there is too much variation in the original map sheets.

So I have created a full dialog, with defaults which should work reasonably well in most cases, but maybe not always:

2_271046_040000000.png2_271046_040000000.png 

The 2-toning can be set to any desired colours, not only greys, or can be set to match the trackpad colours for the different colour schemes. There is a slider to set the threshold level.

Now to finish writing the code, especially the idiot-proofing for when I click the wrong thing. :?

cheers,

Martin.



Templot Club > Forums > Templot talk > maps - feedback wanted
about Templot Club

Templot Companion - User Guide - A-Z Index Templot Explained for beginners Please click: important information for new members and first-time visitors.
indexing link for search engines

back to top of page


Please read this important note about copyright: Unless stated otherwise, all the files submitted to this web site are copyright and the property of the respective contributor. You are welcome to use them for your own personal non-commercial purposes, and in your messages on this web site. If you want to publish any of this material elsewhere or use it commercially, you must first obtain the owner's permission to do so.
The small print: All material submitted to this web site is the responsibility of the respective contributor. By submitting material to this web site you acknowledge that you accept full responsibility for the material submitted. The owner of this web site is not responsible for any content displayed here other than his own contributions. The owner of this web site may edit, modify or remove any content at any time without giving notice or reason. Problems with this web site? Contact webmaster@templot.com.   This web site uses cookies: click for information.  
© 2020  

Powered by UltraBB - © 2009 Data 1 Systems