On 6 Dez., 16:41, Felix Hagemann <
felix.hagem...@gmail.com> wrote:
> +1. I've been bitten by include masks in the cropped area as well.
Meanwhile I've filed a bug report concerning this issue:
https://bugs.launchpad.net/hugin/+bug/685558
so it's in the pipeline and may get resolved.
> While I like the idea of merging the crop tab with the mask tab, I
> think there is a fundamental problem with the approach:
> One the one hand masking as well as adding control point should best
> done on remapped images. I think already is a wishlist items for this.
> On the other hand cropping is mainly used to cut off dark edges of
> input fisheye images, which can be sensibly done on the original
> images only.
So, cropping is really like a less capable form of masking used for
source images only, whereas masking is a more capable form of cropping
that should be used on warped images but is not ;-)
Hmmm... conceptually, both are masking operations. And I see the point
of masking the input images (I often use it to 'remove myself' from
360/180s, which works just fine on unwarped images) - as I see the
point of using it on warped images, as it would actually be more
precise and predictable. I agree with you that control point editing
might be better with warped images.
So I reckon the ideal situation would be to allow masking on both
warped and unwarped images. It would be hard to make the two
compatible, though, with the current technique: The mask is described
by a polygon, and warping would make the polygon into a shape with
curved edges, something you'd have a real hard time describing with a
simple string of number pairs (that's how masks are represented in the
pto). Reversely, unwarping a polygonal mask defined for a warped image
would do the same. Maybe the masking could move to direct manipulation
of the alpha channel - then the warping/unwarping would just happen
together with the image data - I'm not entirely certain how it's done
technically in huign, but the only feasible way I can imagine is
calculation of the alpha channel from the polygonal mask and applying
or at least attaching it before warping, so the alpha channel handling
is already there, but the alpha channel can't yet be directly
manipulated.
There is one more aspect to cropping/masking. It is quite possible to
apply an alpha channel to the image before feeding it into hugin. This
is easily done with, e.g. the gimp, and there, a full infrastructure
exists to edit the alpha channel to one's heart's content, so the
facilty to create crops and simple polygonal masking in hugin is just
a nice-to-have tool just where you want it which does just what you
need most of the time, and not the only way to achieve such effects.
For the time being, with cropping and masking both happening on the
source image, and the only added feature for cropping is making the
mask circular, I think the two could be safely merged, especially if
the option to load mask(s) with the lens ini file, or an equivalent
mechanism, was included - any more involved operation on the input
images can be done externally. Working on warped images (like, direct
interaction with data displayed in the preview) remains an alluring
possibility for the future.
with regards
Kay