Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Blending and Alpha-Mask
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
memecs  
View profile  
 More options Oct 5 2012, 9:53 am
From: memecs <fedepera...@gmail.com>
Date: Fri, 5 Oct 2012 06:53:21 -0700 (PDT)
Local: Fri, Oct 5 2012 9:53 am
Subject: Blending and Alpha-Mask

Hello,

Could please someone explain how multiblend works in details? I am not
interested in the seaming but in the actual blending steps. This is what I
know.

   1. Given source images with alpha channels (mask-000.tit,mask-001.tif)
   crop to alpha bounding-box and in-paint empty regions. Hence image masks
   will have a rectangular shape.
   2. Compute NTF transform on the full  resolution final-image (resolution
   of the panorama).
   3. Compute 2 gaussian pyramids (inverted) on the image obtained in step 2
   4. Compute Laplacian pyramid on each individual cropped image (0-level
   have the resolution of the initial mask bounding-box)

Then?

I have been looking into the source-code but it's quite difficult to
understand at low-level. I know the Burt algorithm but I can't really
figure out, the right way to make it work correctly with alpha-channels (I
get bleeding colors in the zero-alpha regions)

Thanks

  mb_mask000.png
10K Download

  mb_mask001.png
9K Download

  mask-000.tif
22K Download

  mask-001.tif
22K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Monkey  
View profile  
 More options Oct 8 2012, 11:40 am
From: Monkey <davidhorma...@gmail.com>
Date: Mon, 8 Oct 2012 08:40:45 -0700 (PDT)
Local: Mon, Oct 8 2012 11:40 am
Subject: Re: Blending and Alpha-Mask

Then...

Each image's Laplacian pyramid is mutiplied by its mask pyramid and this
result is placed into a full size (and to begin with, blank) Laplacian
pyramid. Shortcuts are taken where the mask is pure white or black (masks
are stored and processed in a compressed format so the code is a little
more complex than usual). Once all images have been processed the big
Laplacian pyramid is collapsed and the result is the output image.

I'm not sure from your final sentence whether the colour bleeding is a
problem you are having with multiblend (in which case can you provide a
screenshot) or are you trying to implement something multiblend does in
your own way? Multiblend's final output is blacked out where in those areas
where all images have 0 alpha. You can disable this with --nomask but then
all you should see on the outside are the inpainted parts of the source
images.

Some other points:

> Given source images with alpha channels (mask-000.tit,mask-001.tif) crop

to alpha bounding-box and in-paint empty regions. Hence image masks will
have a rectangular shape.

I may be misunderstanding you, but this is not quite true. Only RGB in
inpainted - masks retain their shape, within the image's rectangular
bounding box.

   1. Compute NTF transform on the full  resolution final-image (resolution
   of the panorama).
   2. Compute 2 gaussian pyramids (inverted) on the image obtained in step 2

The NFT (nearest feature transform?) is performed on a map made up of those
regions where only one image's mask is present. All other regions are left
black to be filled by the NFT.

multiblend computes *n* gaussian pyramids for *n* images. They are only the
inverse of each other when there are only two source images.

David

Friday, 5 October 2012 14:53:21 UTC+1, memecs wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Federico Perazzi  
View profile  
 More options Oct 8 2012, 2:30 pm
From: Federico Perazzi <federico.pera...@gmail.com>
Date: Mon, 8 Oct 2012 20:30:07 +0200
Local: Mon, Oct 8 2012 2:30 pm
Subject: Re: [hugin-ptx] Re: Blending and Alpha-Mask

Hi David thanks for your explanation. I am implemented the blender myself
because I will need to do some adjustments in the future.

However here I am still missing something.

Each image's Laplacian pyramid is mutiplied by its mask pyramid and this

> result is placed into a full size (and to begin with, blank) Laplacian
> pyramid.

Thus most likely at each level of the pyramid the laplacian images will be
immersed into a big-black image (see attachment). So when collapsing the
pyramid (leading to the final stitching), image colors wiil be blurred with
the black background. Is there any way you are handling this situation?

Thanks again,
Federico

  example.jpg
9K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
memecs  
View profile  
 More options Oct 8 2012, 10:39 pm
From: memecs <fedepera...@gmail.com>
Date: Mon, 8 Oct 2012 19:39:22 -0700 (PDT)
Local: Mon, Oct 8 2012 10:39 pm
Subject: Re: [hugin-ptx] Re: Blending and Alpha-Mask

Nevermind I figured that out. Thanks a lot again for your help.

Best,
Federico


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Monkey  
View profile  
 More options Oct 9 2012, 11:32 am
From: Monkey <davidhorma...@gmail.com>
Date: Tue, 9 Oct 2012 08:32:04 -0700 (PDT)
Local: Tues, Oct 9 2012 11:32 am
Subject: Re: [hugin-ptx] Re: Blending and Alpha-Mask

Ah, I see where the confusion arises (and maybe you do too if you have
figured it out!)

multiblend assumes that the edges of an image, once inpainted, extend out
to infinity.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »