title: Can Someone Explain This Labview Code
body: <p>I modified some Labview code I found online to use in my program. It works, I understand nearly all of it, but there's one section that confuses me. This is the program:</p>
  
  <p><a href="https://i.stack.imgur.com/HXhe0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HXhe0.png" alt="Compare Pictures"></a></p>
  
  <p>This program takes 2 images, subtracts them, and returns the picture plus a percentage difference. What I understand is it takes the pictures, subtracts them, converts the subtracted image into an array of colored pixels, then math happens, and the pixels are compared to the threshold. It adds a 1 for every pixel greater than the threshold, divides it by the image size, and out comes a percentage. The part I don't understand is the math part, the whole quotient and remainder section with a "random" 256. Because I don't understand how to get these numbers, I have a percentage, but I don't understand what they mean. Here's a picture of the front panel with 2 different tests.</p>
  
  <p><a href="https://i.stack.imgur.com/JCQ9A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JCQ9A.png" alt="Test Pictures"></a></p>
  
  <p>In the top one, I have a percentage of 15, and the bottom a percentage of 96. This tells me that the bottom one is "96 percent different". But is there anyway to make sure this is accurate? </p>
  
  <p>The other question I have is threshold, as I don't know exactly what that does either. Like if I change the threshold on the bottom image to 30, my percentage is 8%, with the same picture. </p>
  
  <p>I'm sure once I understand the quotient/remainder part, it'll all make sense, but I can't seem to get it. Thank you for your help.</p>