Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. import java.io.*;
  2. public class Test
  3. {
  4. public static void main (String[] args) throws FileNotFoundException
  5. {
  6. FileChooser.setMediaPath("C:/Users/Lei Lei/Documents/Western/New Forest Fire/PB200015 Results/Original Frames/");
  7. String filePath2 = "C:/Users/Lei Lei/Documents/Western/New Forest Fire/PB200015 Results/Cluster_1/";
  8. String name0 = FileChooser.getMediaPath("PB200015_130.png");
  9. String name1 = FileChooser.getMediaPath("PB200015_221.png");
  10. String name2 = FileChooser.getMediaPath("PB200015_312.png");
  11. String name3 = FileChooser.getMediaPath("PB200015_403.png");
  12. String name4 = FileChooser.getMediaPath("PB200015_494.png");
  13. String name5 = FileChooser.getMediaPath("PB200015_585.png");
  14. String name6 = FileChooser.getMediaPath("PB200015_676.png");
  15.  
  16. Picture[] test = new Picture[2];
  17. test[0] = new Picture(name0);
  18. test[1] = new Picture(name5);
  19. /*test[1] = new Picture(name1);
  20. test[2] = new Picture(name2);
  21. test[3] = new Picture(name3);
  22. test[4] = new Picture(name4);
  23. test[5] = new Picture(name5);
  24. test[6] = new Picture(name6); */
  25.  
  26. ForestFire.explore(test);
  27.  
  28. /*System.out.println(test[0]);
  29. Picture ref = ForestFire.flame(test)[7];
  30. ref.explore();
  31. Picture plot = ForestFire.plot(test, 203, 219);
  32. Picture[] result = ForestFire.stack(test, plot, 203, 219);
  33. //Picture[] result1 = ForestFire.useBrightestInd(test, ref);
  34. Picture[] result3 = ForestFire.highVarInd(test, ref);
  35. //ForestFire.explore(ForestFire.stack(test, plot, 203, 219));
  36. ForestFire.explore(ForestFire.stack(test,result3));
  37. */
  38.  
  39. ForestFire.explore(ForestFire.stack(test, ForestFire.cluster(test)));
  40. ForestFire.write(frameName, filePath2, result, "Plot_120_120");
  41.  
  42. }
  43. } // end of Test class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement