001/*******************************************************************************
002 * This software is provided as a supplement to the authors' textbooks on digital
003 *  image processing published by Springer-Verlag in various languages and editions.
004 * Permission to use and distribute this software is granted under the BSD 2-Clause 
005 * "Simplified" License (see http://opensource.org/licenses/BSD-2-Clause). 
006 * Copyright (c) 2006-2016 Wilhelm Burger, Mark J. Burge. All rights reserved. 
007 * Visit http://imagingbook.com for additional details.
008 *******************************************************************************/
009
010package imagingbook.pub.sift.scalespace;
011
012
013public class DogScaleSpace extends HierarchicalScaleSpace {
014        
015        public DogScaleSpace(GaussianScaleSpace G) {
016                super(G.P, G.Q, G.sigma_s, G.sigma_0, G.botLevel, G.topLevel-1);  //botLevel = -1, topLevel = K+1
017                build(G);
018        }       
019        
020        private final void build(GaussianScaleSpace G) {
021                // build DoG octaves:
022                for (int p = 0; p < P; p++) {
023                        ScaleOctave Gp = G.getOctave(p);
024                        octaves[p] = new DogOctave(Gp);
025                }
026        }
027
028}