I frequently create ortho mosaics from drone photos, then manually have to trace them to create vector habitat polygons.
Is there any software that can do this (preferably command line)? I do not necessarily need an algorithm which specifically identifies habits from the rasters, just delineating boundaries and edges would save alot of time.
Thank you
I frequently create ortho mosaics from drone photos, then manually have to trace them to create vector habitat polygons.
Is there any software that can do this (preferably command line)? I do not necessarily need an algorithm which specifically identifies habits from the rasters, just delineating boundaries and edges would save alot of time.
Thank you
Share Improve this question asked Feb 5 at 16:47 symeboysymeboy 295 bronze badges 3- Not sure what you mean by habitat polygons, but image segmentation to vectors via command line is possible with orthoseg. (Disclaimer: I'm the developer). – Pieter Commented Feb 5 at 17:59
- Thanks! Looks interesting. I see that it is a deep learning algorithm, presumably I would have to provide lots of data in terms of training datasets? I'm not sure how else I can phrase it, "habitat" and "polygons" are fairly unequivical terms. – symeboy Commented Feb 5 at 18:40
- Lots of training data is relative. It depends on the difficulty of what you are detecting, but on average I use/need a few 100's of examples of e.g. 512x512 pixels. As you already digitized some mosaics in the past you probably can use those digitizations for the training data. – Pieter Commented Feb 5 at 19:32
1 Answer
Reset to default 1In R:
library(terra)
r <- rast(system.file("ex/elev.tif", package="terra"))
# manually creating a boundary, but many other approaches are possible
rc <- r > 400
p <- as.polygons(rc)
plot(rc)
lines(p, col="red", lwd=2)