convert $filename -format "%[standard_deviation]" info:
convert $filename -format "%[fx:standard_deviation]" info:
The former will produce std values in the range 0 to QuantumRange
The latter will produce normalized std values in the range 0 to 1
Be careful that you scale them both to similar ranges for your threshold. I usually use percent in range 0 to 100 for the std and use percents for the thresholding for the test of acceptable or not.
Note that std is like a measure of energy. It is an edge detection (if applied locally on an image) so the larger the global value, the more edges or more energy there is in the image.
Another thought/approach might be to resize the image to half or a quarter size using both -resize and -liquid-rescale. Then do a compare on the two images. The more different the more the liquid-rescale has removed low energy parts.