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-2023 Wilhelm Burger, Mark J. Burge. All rights reserved.
007 * Visit https://imagingbook.com for additional details.
008 ******************************************************************************/
009
010package imagingbook.common.sift;
011
012import imagingbook.common.color.sets.ColorEnumeration;
013
014import java.awt.Color;
015
016import static imagingbook.common.color.sets.ColorEnumeration.getColors;
017
018/**
019 * Color definitions used in various SIFT demo plugins.
020 * 
021 * @author WB
022 * @version 2022/11/19
023 */
024public enum SiftColors implements ColorEnumeration {
025        Red(240, 0, 0),
026        Green(0, 185, 15),
027        Blue(0, 60, 255),
028        Magenta(255, 0, 200),
029        Yellow(255, 200, 0),
030        ;
031        
032        public static final Color[] ScaleLevelColors = 
033                        getColors(SiftColors.class);
034        
035        private final Color color;
036        
037        SiftColors(int r, int g, int b) {
038                this.color = new Color(r, g, b);
039        }
040        
041        @Override
042        public Color getColor() {
043                return this.color;
044        }
045        
046}