Pages: [1]   Go Down

Author Topic: Amenabar v0.9b: free soft to eliminate people  (Read 16866 times)

Guillermo Luijk

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2013
    • http://www.guillermoluijk.com
Amenabar v0.9b: free soft to eliminate people
« on: November 15, 2006, 05:36:18 pm »

Amenabar is a Spanish film director. In one of his movies: 'Abre los ojos' ('Open your eyes'), BTW very poorly remade as an american production under the title of 'Vanilla sky', he managed to close the most crowded avenue in Madrid, Gran Vía, for shooting with no people at all in the scene but the main character.

With this program you can try to do the same, get rid of those annoying tourists, people and cars moving around the building or area you are interested in.

To do that you need to take several pictures of the same scene, using a tripod and manual mode. Set the focus, speed and aperture and not modify them in the whole shooting session.
It's important to take shoots as different from the others as possible, as the program will try to identify the background as those parts that don't change from one picture to another. So the shoots should be spaced in time.
But not too much or you will get differences in the shadows (the sun is moving!), although this can be avoided if using a mask file, explained later.
All the pictures must have exactly the same size in pixels.

The way the program works:

1. Put all images in a separate folder.

2. Choose with '...' any of those files to let the program know where they should be read from.

3. From all the files in 2, choose the one with less moving undesired obstacles, make a copy of it, and paint a pure red (255,0,0) mask over all moving elements that are to be eliminated. The program will only process those areas, leaving all pixels out of the masked zones untouched, so as they appear on this reference masked picture. This file can't be in JPEG (use TIFF or BMP instead) format as red borders must be perfectly delimitated. So if you are going to paint your mask in PS make sure to use a pencil 100% strong, not brush.

This user assistance red mask is optional but highly recommended to:
- Get a much faster processing (6 times or more faster) as only marked areas will be processed.
- Preserve moving parts that BELONG to the desired background (shadows that could move with sun movement, water flows, smoke, ondulating flags,...) from being completely destroyed.
- Avoid undesired artifacts on those areas affected by moving obstacles in may of the pictures, but that are clear on this reference image.

This file can be located in the same directory as the others as will be ignored in the clustering process.

4. Choose a threshold (typ. 5%) for the colour clusters (two pixels will be considered of the same colour if the difference between them is less than this threshold). By changing the threshold better or worse results can be achieved for each set of pictures, try. Generally too low values will produce some sparkle undesired pixels to appear, and too high values will propiciate the averaging of undesired information with the background pixels resulting in "ghost" shapes where moving obstacles were located.

5. Chose a colour model. Absolute is recommended; I am still making tests with the Relative algorithm which should improve background recovery when obstacles are darker than the backgorund (e.g. car tyres over well lighted street concrete).

6. Press 'Remove' and the program will do its calculations (for 17 images of 2Mpx my P4 with 2GB took less than 30 secs to process with mask, nearly 3min unmasked). The result will be saved in the same directory of the pictures with the name: "RemovedFiles17_TH5%_Mask_AbsMode.tif" indicating number of original files and used parameters.
Resulting files will be stored in the same folder as original images, but ignored if more processings are to be done over the same folder (as long as they start with the string "Removed") so you can keep them there and repeat the backgorund recovery using different threshold values for instance.


I expect your feedback.
This is a very early version of the software, I have to improve it a lot. But it works!


This is the simple GUI:




An example: from a series of 17 images in a very crowded avenue:




It is now optional but recommended to assist the program to improve results. We have to choose the image with less obstacles and make a copy of it, setting a pure red (255,0,0) mask over those elements that are to be recovered from the background.
We choose the bottom right image with the red T-shirt boy, and we set roughly (no need to be precise) the mask areas to recover (remove people):




And Amenabar achieved this:



View actual size

It works fine.

Tyres of the cars, for being all black, are enemy number one. You can see some black pixels on the street concrete on the right side of the Farmacia.
Also "saboteurs" (characters that stay for a long time, like those people waiting for the bus where the background is impossible to recover) are a problem and may require to be left out of the mask not to get them badly blurred as we did.

But in a sunny day, in a representative building only with tourists, I am sure it will work perfect.


You can download it for free from here (follow Software - Amenabar):
http://perso.wanadoo.es/gluijk
« Last Edit: November 24, 2006, 05:08:24 pm by GLuijk »
Logged

jani

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 1625
    • Øyet
Amenabar v0.9b: free soft to eliminate people
« Reply #1 on: November 15, 2006, 05:57:32 pm »

Quote
With this program you can try to do the same, get rid of those annoying tourists, people and cars moving around the building or area you are interested in.
Hmm, that's pretty cool, I'm fairly certain that this technique has been used by the movie industry also!
Logged
Jan

OldRoy

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 470
    • http://
Amenabar v0.9b: free soft to eliminate people
« Reply #2 on: December 24, 2008, 01:44:40 pm »

Quote from: GLuijk
Amenabar is a Spanish film director. In one of his movies: 'Abre los ojos' ('Open your eyes'), BTW very poorly remade as an american production under the title of 'Vanilla sky', he managed to close the most crowded avenue in Madrid, Gran Vía, for shooting with no people at all in the scene but the main character.


It is now optional but recommended to assist the program to improve results. We have to choose the image with less obstacles and make a copy of it, setting a pure red (255,0,0) mask over those elements that are to be recovered from the background.
We choose the bottom right image with the red T-shirt boy, and we set roughly (no need to be precise) the mask areas to recover (remove people):


You can download it for free from here (follow Software - Amenabar):
http://perso.wanadoo.es/gluijk
Hi Guillermo
I mailed you about this, then found this thread and emailed "ignore mail". However I have tried repeatedly to get this to work. It removes everything except the masked item in the reference Tiff. I have tried eliminating the JPEG file from which this masked Tiff was created from the set, and left it in. In neither case does the masked area in the reference file get eliminated from the output. I have tried this using 16- and 8-bit tiffs. I am using a hard 100% pencil for the alpha channel masking. Apart from this, Amenabar works fine! When I leave out the reference Tiff the results are not good however.

I think this is an excellent program idea. For spherical panoramas in busy locations it would be indispensible. I'd appreciate your help on this.

Roy
Logged

Tklimek

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 284
Amenabar v0.9b: free soft to eliminate people
« Reply #3 on: December 24, 2008, 02:09:35 pm »

Folks.....

I don't even have Photoshop (I have Photoshop "Elements") but did see an article in one of the Kelby magazines (pretty sure it was "Photoshop User") that showed a feature that is already in CS3 Extended that does this very thing.  They showed an example of a busy "people mover" at an airport and with the combination of several frames "removed" the people making the airport appear empty; pretty trick.

Cheers.....

Todd in Chicago


Quote from: OldRoy
Hi Guillermo
I mailed you about this, then found this thread and emailed "ignore mail". However I have tried repeatedly to get this to work. It removes everything except the masked item in the reference Tiff. I have tried eliminating the JPEG file from which this masked Tiff was created from the set, and left it in. In neither case does the masked area in the reference file get eliminated from the output. I have tried this using 16- and 8-bit tiffs. I am using a hard 100% pencil for the alpha channel masking. Apart from this, Amenabar works fine! When I leave out the reference Tiff the results are not good however.

I think this is an excellent program idea. For spherical panoramas in busy locations it would be indispensible. I'd appreciate your help on this.

Roy
Logged

OldRoy

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 470
    • http://
Amenabar v0.9b: free soft to eliminate people
« Reply #4 on: January 03, 2009, 05:28:35 am »

Quote from: Tklimek
Folks.....

I don't even have Photoshop (I have Photoshop "Elements") but did see an article in one of the Kelby magazines (pretty sure it was "Photoshop User") that showed a feature that is already in CS3 Extended that does this very thing.  They showed an example of a busy "people mover" at an airport and with the combination of several frames "removed" the people making the airport appear empty; pretty trick.

Cheers.....

Todd in Chicago
Thanks Todd
I'll take a look - didn't even think to. This may be why there has been no development (or, it appears, interest in, "Amenabar"). It's obviously possibe to do the same job in CS3 by manual masking, but I wasn't aware that it could be automated. I hope so!
Roy
Logged

Guillermo Luijk

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2013
    • http://www.guillermoluijk.com
Amenabar v0.9b: free soft to eliminate people
« Reply #5 on: January 03, 2009, 04:37:27 pm »

Quote from: OldRoy
I mailed you about this, then found this thread and emailed "ignore mail". However I have tried repeatedly to get this to work. It removes everything except the masked item in the reference Tiff. I have tried eliminating the JPEG file from which this masked Tiff was created from the set, and left it in. In neither case does the masked area in the reference file get eliminated from the output. I have tried this using 16- and 8-bit tiffs. I am using a hard 100% pencil for the alpha channel masking. Apart from this, Amenabar works fine! When I leave out the reference Tiff the results are not good however.

Hi Roy, could you show some example of masked area which is not eliminated in the output?
Of course to be able to eliminate the character into the masked area, ther must be some shots in which that masked area is clean. The program cannot invent pixels, it just tries to choose the pixels from the most empty source images.

Did you paint in pure red (255,0,0) the mask?

Please show exampes.

BR
Pages: [1]   Go Up