The deal with these is the what is in the cartridge. The first picture you have is of a sediment filter--this filters out sediment (go figure) from the line. Another step might be a carbon filter, removing some organic and inorganic molecules from the mixture. A third might be a deionizer, or RO unit, etc.
Often these are run in a series, in fact with an RO there needs to be both a sediment filter and a carbon filter in place or the sediment will clog the RO membrane and the chlorine will burn the membrane.
The action you describe is the same as that of an in-home water softener--a resin charged with sodium replaces salts (calcium/magnesium) as water flows past it. Periodically it has to be regenerated by a heavy brine solution.
Often these are run in a series, in fact with an RO there needs to be both a sediment filter and a carbon filter in place or the sediment will clog the RO membrane and the chlorine will burn the membrane.
The action you describe is the same as that of an in-home water softener--a resin charged with sodium replaces salts (calcium/magnesium) as water flows past it. Periodically it has to be regenerated by a heavy brine solution.