switch (profileType) { case RATIO: return new RGBImageProfile("Dual Pol Ratio " + name + suffix + ' ' + pol1 + '+' + pol2, new String[]{ name + '_' + pol1 + suffix, return new RGBImageProfile("Dual Pol Multiple " + name + suffix + ' ' + pol1 + '+' + pol2, new String[]{ name + '_' + pol1 + suffix, return new RGBImageProfile("Dual Pol Difference " + name + suffix + ' ' + pol1 + '+' + pol2, new String[]{ name + '_' + pol2 + suffix,
@Override public String toString() { String name = _profile.getName().replace('_', ' '); if (getSelectedProfileItem().equals(this) && isSelectedProfileModified()) { name += " (modified)"; } return name; } }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } else if (obj instanceof ProfileItem) { ProfileItem profileItem = (ProfileItem) obj; return getProfile().equals(profileItem.getProfile()); } return false; }
RGBImageProfile profile = new RGBImageProfile(FileUtils.getFilenameWithoutExtension(file), rgbaExpressions); try { profile.store(file); } catch (IOException e) { AbstractDialog.showErrorDialog(this,
profile = RGBImageProfile.loadProfile(file); String[] rgbaExpressions = profile.getRgbaExpressions(); profile.setRgbaExpressions(rgbaExpressions); } catch (IOException e) { AbstractDialog.showErrorDialog(this, if (product != null && !profile.isApplicableTo(product)) { AbstractDialog.showErrorDialog(this, String.format("The selected RGB-Profile '%s'\nis not applicable to the current product.", profile.getName()), "Open RGB-Image Profile"); return;
addProfiles(registeredProfiles); if (this.product != null) { final RGBImageProfile productProfile = RGBImageProfile.getCurrentProfile(this.product); if (productProfile.isValid()) { final RGBImageProfile similarProfile = findMatchingProfile(productProfile); if (similarProfile != null) {
public S2OrthoProductReaderPlugIn() { RGBImageProfileManager manager = RGBImageProfileManager.getInstance(); manager.addProfile(new RGBImageProfile("Sentinel 2 MSI Natural Colors", new String[]{"B4", "B3", "B2"})); manager.addProfile(new RGBImageProfile("Sentinel 2 MSI False-color Infrared", new String[]{"B8", "B4", "B3"})); manager.addProfile(new RGBImageProfile("Sentinel 2 MSI False-color Urban", new String[]{"B12", "B11", "B4"})); manager.addProfile(new RGBImageProfile("Sentinel 2 MSI Agriculture", new String[]{"B11", "B8", "B2"})); manager.addProfile(new RGBImageProfile("Sentinel 2 MSI Atmospheric penetration", new String[]{"B12", "B11", "B8A"})); manager.addProfile(new RGBImageProfile("Sentinel 2 MSI Healthy Vegetation", new String[]{"B8", "B11", "B2"})); manager.addProfile(new RGBImageProfile("Sentinel 2 MSI Land/Water", new String[]{"B8", "B11", "B4"})); manager.addProfile(new RGBImageProfile("Sentinel 2 MSI Natural with Atmospherical Removal", new String[]{"B12", "B8", "B3"})); manager.addProfile(new RGBImageProfile("Sentinel 2 MSI Shortwave Infrared", new String[]{"B12", "B8", "B4"})); manager.addProfile(new RGBImageProfile("Sentinel 2 MSI Vegetation Analysis", new String[]{"B11", "B8", "B4"})); }
public static String createSceneName(Product product, RGBImageProfile rgbImageProfile, String operation) { final StringBuilder nameBuilder = new StringBuilder(); final String productRef = product.getProductRefString(); if (productRef != null) { nameBuilder.append(productRef); nameBuilder.append(" "); } if (rgbImageProfile != null) { nameBuilder.append(rgbImageProfile.getName().replace("_", " ")); nameBuilder.append(" "); } nameBuilder.append(operation); return nameBuilder.toString(); } }
@Override protected void registerRGBProfile() { RGBImageProfileManager manager = RGBImageProfileManager.getInstance(); manager.addProfile(new RGBImageProfile("MUSCATE Surface Natural Colors", new String[]{"Surface_Reflectance_B4", "Surface_Reflectance_B3", "Surface_Reflectance_B2"})); manager.addProfile(new RGBImageProfile("MUSCATE Flat Natural Colors", new String[]{"Flat_Reflectance_B4", "Flat_Reflectance_B3", "Flat_Reflectance_B2"})); manager.addProfile(new RGBImageProfile("MUSCATE Surface False-color Infrared", new String[]{"Surface_Reflectance_B8", "Surface_Reflectance_B4", "Surface_Reflectance_B3"})); manager.addProfile(new RGBImageProfile("MUSCATE Flat False-color Infrared", new String[]{"Flat_Reflectance_B8", "Flat_Reflectance_B4", "Flat_Reflectance_B3"})); }
@Override protected void registerRGBProfile() { RGBImageProfileManager.getInstance().addProfile(new RGBImageProfile("SPOT", new String[] { "XS1", "XS2", "XS3" })); } }
@Override protected void registerRGBProfile() { RGBImageProfileManager.getInstance().addProfile(new RGBImageProfile("Kompsat 2", Kompsat2Constants.KOMSAT2_RGB_PROFILE)); } }
@Override protected void registerRGBProfile() { RGBImageProfileManager.getInstance().addProfile(new RGBImageProfile("SPOT", new String[] { "XS1", "XS2", "XS3" })); } }
@Override protected void registerRGBProfile() { RGBImageProfileManager.getInstance().addProfile(new RGBImageProfile("RapidEye L1", new String[] { "red", "green", "blue" })); } }
@Override protected void registerRGBProfile() { RGBImageProfileManager.getInstance().addProfile(new RGBImageProfile("SPOT", new String[] { "XS1", "XS2", "XS3" })); } }
@Override protected void registerRGBProfile() { RGBImageProfileManager.getInstance().addProfile(new RGBImageProfile("DEIMOS-1", new String[] { "Red", "Green", "NIR" })); } }
@Override protected void registerRGBProfile() { RGBImageProfileManager.getInstance().addProfile(new RGBImageProfile("SPOT", new String[] { "XS1", "XS2", "XS3" })); } }
@Override protected void registerRGBProfile() { RGBImageProfileManager.getInstance().addProfile(new RGBImageProfile("RapidEye L3", new String[] { "red", "green", "blue" })); } }
@Override protected void registerRGBProfile() { RGBImageProfileManager.getInstance().addProfile(new RGBImageProfile("WorldView-2", WorldView2Constants.WORLDVIEW2_RGB_PROFILE)); } }
@Override protected void registerRGBProfile() { RGBImageProfileManager.getInstance().addProfile(new RGBImageProfile("SPOT 6/7", Spot6Constants.SPOT6_RGB_PROFILE)); } }
@Override protected void registerRGBProfile() { RGBImageProfileManager.getInstance().addProfile(new RGBImageProfile("Pleaides", Constants.RGB_PROFILE)); } }