Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

allow image replacement #281

Open
fgnievinski opened this issue Jul 5, 2024 · 6 comments
Open

allow image replacement #281

fgnievinski opened this issue Jul 5, 2024 · 6 comments

Comments

@fgnievinski
Copy link

It'd be nice to allow replacing the image with another one of the same size (in pixels). Motivation: I've started my project with a grayscale image. Now, I'd like to replace the image with a binary version of the same image (with just the map lines on a transparent background). Currently, I have to download the control points (as a CSV file) then load it in a new project.

@timwaters
Copy link
Owner

Its a nice idea, and one its been looked at before.
Some institutions have multiple copies of an old map and they would like to update the base image. But in practice they seem to be all slightly different. The issue is that the replacement image has to have the same pixel dimensions and also have the same map/image represented on it.
This is because the control points use the x/y of the image space.

I do see the need for it for the reasons you give, where there some processing of the image and it needs to be updated. Lets keep this issue open (it probably wont be worked on for some time though!)

@alexanderzatko
Copy link

Maybe a variant to this feature request - allow export/import of control points. This would be useful in cases when "the same" image is being rectified time and again.

@timwaters
Copy link
Owner

You can import and export control points. click control points under control panel:

Image

export points link also on export tab

@alexanderzatko
Copy link

ah, great - I saw the download, but missed the "Upload" button :-)

I also discovered the API, which is super useful for my use case. Thank you.

@timwaters
Copy link
Owner

Let me know how the API is or if you encounter any sticking points. I don't think many people use it!

@alexanderzatko
Copy link

I am just hacking on it - sorry :-( . So far my code made it up to successfully uploading a map, but is failing when trying to upload the control points. Probably my fault - will continue tomorrow. If I find something suspicious, I will let you know.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants