Is Ball Spin Calculated or Directly Measured?

Just wanted to know if backspin, sidespin is calculated or does the radar detect it directly?  Thanks.