

I think I covered the 1st and 3rd steps, but I struggle with converting the number to stars. Then, the occurrence has to be converted to stars instead of the number of occurrences. The thing is that the assignment is to count how often every user input occurs.įor: 1 0 6 1 5 0 7 9 0 7 -> there is 3x 0, 2x 1, etc. All bins shall be of equal width.I am stuck with creating this histogram in C. The Histogram Bin Width (0060,3008) describes how many consecutive stored image pixel values are counted as one. The number of histogram bins shall be large enough to contain all of the pixels in the range from the smallest to the largest stored image pixel value in that region of the image from which the histogram has been derived (which may or may not be the whole image). All values outside of this range shall be ignored. The range of stored image pixel value instances is described by the Histogram First Bin Value (0060,3004) and Histogram Last Bin Value (0060,3006). The Attributes describing the parameters of the histogram are in image pixel value space, as stored in Pixel Data (7FE0,0010), before the application of any transformation such as Rescale Slope and Intercept or Modality LUT. The Image Histogram may be related to parts or all of a specific image. A description of the region(s) of interest and value range may be included in Histogram Explanation (0060,3010). One or more regions of interest or value ranges may be separately computed. The Image Histogram is multi-valued to support multiple histograms per image. For applications that use them, computations of histograms for very large images can be a significant burden on computer resources and can seriously degrade the response time to the user. One reason to include a histogram with an image is as an aid to image processing applications.
