# Ignoring Polarity

You can ignore the polarity of image features during composite training by setting the The PMAlignComposite object's IgnorePolarity API to true. If you do this, then the trained pattern will contain no polarity information and you must also set the PMAlignPattern object's IgnorePolarity property to true.

Note: If you set IgnorePolarity to true for composite training and set the CogPMAlignPattern object's IgnorePolarity property to false, the tool will generate a run-time error. If you wish to consider feature polarity at run time, you must also consider polarity during composite training.