001/** 002 * Copyright (c) 2011, The University of Southampton and the individual contributors. 003 * All rights reserved. 004 * 005 * Redistribution and use in source and binary forms, with or without modification, 006 * are permitted provided that the following conditions are met: 007 * 008 * * Redistributions of source code must retain the above copyright notice, 009 * this list of conditions and the following disclaimer. 010 * 011 * * Redistributions in binary form must reproduce the above copyright notice, 012 * this list of conditions and the following disclaimer in the documentation 013 * and/or other materials provided with the distribution. 014 * 015 * * Neither the name of the University of Southampton nor the names of its 016 * contributors may be used to endorse or promote products derived from this 017 * software without specific prior written permission. 018 * 019 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 020 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 021 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 022 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 023 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 024 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 025 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 026 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 027 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 028 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 029 */ 030package org.openimaj.demos.acmmm11.presentation; 031 032import java.io.IOException; 033import java.net.MalformedURLException; 034import java.util.ArrayList; 035import java.util.List; 036 037import javax.imageio.ImageIO; 038 039import org.openimaj.content.slideshow.PictureSlide; 040import org.openimaj.content.slideshow.Slide; 041import org.openimaj.content.slideshow.SlideshowApplication; 042import org.openimaj.content.slideshow.VideoSlide; 043import org.openimaj.demos.acmmm11.presentation.slides.AudioOutroSlide; 044import org.openimaj.demos.acmmm11.presentation.slides.SIFTAltSIFTSlide; 045import org.openimaj.demos.acmmm11.presentation.slides.SIFTTrackerSlide; 046import org.openimaj.demos.acmmm11.presentation.slides.TutorialSlide; 047import org.openimaj.math.geometry.transforms.TransformUtilities; 048import org.openimaj.video.VideoDisplay.EndAction; 049 050/** 051 * Presentation for ACM MM 2011. 052 * 053 * @author Jonathon Hare (jsh2@ecs.soton.ac.uk) 054 * @author Sina Samangooei (ss@ecs.soton.ac.uk) 055 */ 056public class OpenIMAJ_ACMMM2011 { 057 /** 058 * @return The slides for the presentation 059 * @throws IOException 060 */ 061 public static List<Slide> getSlides() throws IOException { 062 final List<Slide> slides = new ArrayList<Slide>(); 063 064 slides.add(new PictureSlide(OpenIMAJ_ACMMM2011.class.getResource("slide.001.png"))); // title 065 // slide 066 slides.add(new PictureSlide(OpenIMAJ_ACMMM2011.class.getResource("slide.002.png"))); // What 067 // is 068 // OpenIMAJ 069 slides.add(new PictureSlide(OpenIMAJ_ACMMM2011.class.getResource("slide.003.png"))); // What 070 // is 071 // ImageTerrier 072 slides.add(new PictureSlide(OpenIMAJ_ACMMM2011.class.getResource("slide.005.png"))); // History 073 // of 074 // development 075 slides.add(new PictureSlide(OpenIMAJ_ACMMM2011.class.getResource("slide.006.png"))); // All 076 // in 077 // java, 078 // isnt 079 // it 080 // slow?! 081 slides.add(new SIFTTrackerSlide()); // live DoG/SIFT demo 082 slides.add(new PictureSlide(OpenIMAJ_ACMMM2011.class.getResource("slide.007.png"))); // Why 083 // another 084 // set 085 // of 086 // libraries? 087 slides.add(new PictureSlide(OpenIMAJ_ACMMM2011.class.getResource("slide.008.png"))); // Designed 088 // to 089 // be 090 // EXTENSIBLE 091 slides.add(new PictureSlide(OpenIMAJ_ACMMM2011.class.getResource("slide.009.png"))); // Alt 092 // SIFT: 093 // DoG/SIFT 094 slides.add(new PictureSlide(OpenIMAJ_ACMMM2011.class.getResource("slide.010.png"))); // Alt 095 // SIFT: 096 // highlight 097 // dom 098 // ori 099 slides.add(new PictureSlide(OpenIMAJ_ACMMM2011.class.getResource("slide.011.png"))); // Alt 100 // SIFT: 101 // replace 102 // with 103 // Null 104 // ori 105 slides.add(new PictureSlide(OpenIMAJ_ACMMM2011.class.getResource("slide.012.png"))); // Alt 106 // SIFT: 107 // highlight 108 // SIFT 109 // feature 110 slides.add(new PictureSlide(OpenIMAJ_ACMMM2011.class.getResource("slide.013.png"))); // Alt 111 // SIFT: 112 // replace 113 // with 114 // Irregular 115 // binning 116 // SIFT 117 slides.add(new SIFTAltSIFTSlide()); // Normal vs ALT demo 118 slides.add(new PictureSlide(OpenIMAJ_ACMMM2011.class.getResource("slide.014.png"))); // Street 119 // View 120 // Cam 121 slides.add(new PictureSlide(OpenIMAJ_ACMMM2011.class.getResource("slide.015.png"))); 122 slides.add(new VideoSlide( 123 OpenIMAJ_ACMMM2011.class.getResource("kinect.m4v"), // video 124 OpenIMAJ_ACMMM2011.class.getResource("slide.016.png"), // background 125 TransformUtilities.translateMatrix(540, 550).times(TransformUtilities.scaleMatrix(1.0f, 1.0f)), // transform 126 EndAction.LOOP 127 ) 128 ); // Student projects + Kinect video 129 slides.add(new TutorialSlide()); // Student Tutorial demo 130 slides.add(new PictureSlide(OpenIMAJ_ACMMM2011.class.getResource("slide.017.png"))); // Research 131 // applications 132 slides.add(new VideoSlide( 133 OpenIMAJ_ACMMM2011.class.getResource("guessthebuilding.mov"), // video 134 OpenIMAJ_ACMMM2011.class.getResource("background.png"), // background 135 EndAction.LOOP 136 ) 137 ); // Guess the Building demo 138 slides.add(new VideoSlide( 139 OpenIMAJ_ACMMM2011.class.getResource("stockphotofinder.mov"), // video 140 OpenIMAJ_ACMMM2011.class.getResource("background.png"), // background 141 EndAction.LOOP 142 ) 143 ); // Stock photo finder demo 144 slides.add(new AudioOutroSlide(OpenIMAJ_ACMMM2011.class.getResource("slide.018.png"))); // Questions 145 // + 146 // Audio 147 // strem 148 // viewer 149 150 return slides; 151 } 152 153 /** 154 * Run the presentation 155 * 156 * @param args 157 * ignored 158 * @throws MalformedURLException 159 * @throws IOException 160 */ 161 public static void main(String[] args) throws MalformedURLException, IOException { 162 new SlideshowApplication(getSlides(), 1024, 768, ImageIO.read(OpenIMAJ_ACMMM2011.class 163 .getResourceAsStream("background.png"))); 164 } 165}