- java.lang.Object
-
- bdv.spimdata.tools.ChangeAttributeId
-
public class ChangeAttributeId extends Object
-
-
Constructor Summary
Constructors Constructor Description ChangeAttributeId()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,Map<Integer,Integer>>assignNewAttributeIds(mpicbg.spim.data.generic.AbstractSpimData<?> spimData, Map<String,Set<Integer>> idsInUse)For the specifiedspimDatadata set, re-assign attribute id's that are already in use.static voidchangeAttributeId(mpicbg.spim.data.generic.AbstractSpimData<?> spimData, String attributeName, int oldAttributeId, int newAttributeId)TODO
-
-
-
Method Detail
-
assignNewAttributeIds
public static Map<String,Map<Integer,Integer>> assignNewAttributeIds(mpicbg.spim.data.generic.AbstractSpimData<?> spimData, Map<String,Set<Integer>> idsInUse)
For the specifiedspimDatadata set, re-assign attribute id's that are already in use. As a result, attribute ids inspimDataare updated and the set of used idsidsInUseis updated.- Parameters:
spimData- dataset whose attributes to make unique. Will be updated as a result of this method.idsInUse- Maps attribute name to set of ids already used for that attribute. Will be updated as a result of this method.- Returns:
- a map from attribute name to a map from old id to new id (the
attributes in
spimDatahad the old id before calling this method, and have the new id after calling this method).
-
changeAttributeId
public static void changeAttributeId(mpicbg.spim.data.generic.AbstractSpimData<?> spimData, String attributeName, int oldAttributeId, int newAttributeId)
TODO- Parameters:
spimData-attributeName-oldAttributeId-newAttributeId-
-
-