Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- public class Test
- {
- public static void main (String[] args) throws FileNotFoundException
- {
- FileChooser.setMediaPath("C:/Users/Lei Lei/Documents/Western/New Forest Fire/PB200015 Results/Original Frames/");
- String filePath2 = "C:/Users/Lei Lei/Documents/Western/New Forest Fire/PB200015 Results/Cluster_1/";
- String name0 = FileChooser.getMediaPath("PB200015_130.png");
- String name1 = FileChooser.getMediaPath("PB200015_221.png");
- String name2 = FileChooser.getMediaPath("PB200015_312.png");
- String name3 = FileChooser.getMediaPath("PB200015_403.png");
- String name4 = FileChooser.getMediaPath("PB200015_494.png");
- String name5 = FileChooser.getMediaPath("PB200015_585.png");
- String name6 = FileChooser.getMediaPath("PB200015_676.png");
- Picture[] test = new Picture[2];
- test[0] = new Picture(name0);
- test[1] = new Picture(name5);
- /*test[1] = new Picture(name1);
- test[2] = new Picture(name2);
- test[3] = new Picture(name3);
- test[4] = new Picture(name4);
- test[5] = new Picture(name5);
- test[6] = new Picture(name6); */
- ForestFire.explore(test);
- /*System.out.println(test[0]);
- Picture ref = ForestFire.flame(test)[7];
- ref.explore();
- Picture plot = ForestFire.plot(test, 203, 219);
- Picture[] result = ForestFire.stack(test, plot, 203, 219);
- //Picture[] result1 = ForestFire.useBrightestInd(test, ref);
- Picture[] result3 = ForestFire.highVarInd(test, ref);
- //ForestFire.explore(ForestFire.stack(test, plot, 203, 219));
- ForestFire.explore(ForestFire.stack(test,result3));
- */
- ForestFire.explore(ForestFire.stack(test, ForestFire.cluster(test)));
- ForestFire.write(frameName, filePath2, result, "Plot_120_120");
- }
- } // end of Test class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement