[AI] Add raster mask export for object masks#20646
[AI] Add raster mask export for object masks#20646andriiryzhkov wants to merge 1 commit intodarktable-org:masterfrom
Conversation
dc0ad15 to
b7130ce
Compare
TurboGit
left a comment
There was a problem hiding this comment.
Frankly I'm not sure if it is useful or not. I certainly won't use this, but that's only me. I cannot come with a scenario where this will be handy at the moment.
| if(!root || !*root) | ||
| { | ||
| g_free(root); | ||
| dt_control_log(_("set raster mask root folder in preferences")); |
There was a problem hiding this comment.
This is not in preference but in Raster File module.
There was a problem hiding this comment.
It is in Preferences -> processing -> raster mask files root folder. It's a default location.
If I understand correctly, this would allow to have a more precise mask than the vectorized mask (e.g. for rugged edges). |
|
Not sure, if there will be any quality benefits. Vectorisation is pretty accurate if you keep smoothing at 0. Maybe at some edge cases. But that adds dependency on an external file. So pipe willing work correctly without it. |
Ok, never mind. I thought this a mitigation for what was discussed in this posting on pixls.us |
Me too. But I saw people asking about it. And it's not a big feature, so decided to propose it. We can keep it for later if there will be more requests. |
It is exactly for that purpose. Just not sure if it will help much with fine details on edges. But idea is that it might be useful for someone. |
Another small improvement. Not 100% sure about it, but maybe helpful for someone.
Adds the ability to export the SAM segmentation mask as an RGB PNG file, compatible with the external raster masks module. Triggered by shift+right-click during object mask creation.
How it works
Output format
rasterfileIOP moduleplugins/darkroom/segments/def_path){image_name}_mask.png, auto-incremented (_1,_2, ...) if file exists