Correlate pixel color to load value
Mostrar comentarios más antiguos
I'm working on a tensile sensor based image and I would like to create an equation to correlate pixel color to load. How can I do it without image processing toolbox? I have RGB colored image and the actual load at which that image was captured.
In the image below, the effective load is 500N.

11 comentarios
Rik
el 21 de Sept. de 2020
What method did you have in mind? It sounds like the curve fitting toolbox is more what you are after.
Walter Roberson
el 21 de Sept. de 2020
Is the assumption that there was a discretized colormap, with all load values between A and B being assigned the same color, and B to C being assigned a potentially unrelated color?
Or is the assumption that there was a colormap over which interpolation was done, so that a value part way between A and B has had each of its RGB components independent interpolated between the RGB components assigned for A and B ?
Himanshu Verma
el 21 de Sept. de 2020
Walter Roberson
el 21 de Sept. de 2020
Can you calibrate with low-area blocks of known weight? Especially if you can get something with little legs, so that the force is as close to pin-prick as you can get, to make it easier to calculate force per unit area ?
Himanshu Verma
el 21 de Sept. de 2020
Walter Roberson
el 23 de Sept. de 2020
If you had enough images, with sufficient range of values so that all 256 colors appear multiple times, then in theory you could do a linear least squared fit using \ in order to find out the exact weight each different color contributes to the total load. I think you would need a minimum of 256 such images, but I am not positive on that at the moment.
But it would be a lot easier to calibrate, even if that just means gluing a slab of wood to a washer and putting different weights on the slab.
Himanshu Verma
el 23 de Sept. de 2020
Image Analyst
el 23 de Sept. de 2020
Editada: Image Analyst
el 23 de Sept. de 2020
Why can't you get the original monochrome sensor load matrix? My demos usually require the Image Processing Toolbox. Could you get it? Maybe even a 30 day free trial if you can get everything done in that time. I agree with Walter that if you can't get a colorbar and don't know the values at the ends of the load range, then you're best off just collecting a set of images where you increase the load (hopefully uniformly and evenly over the whole field of view). That way you can build up a calibration curve where a displayed color is associated with a known weight/load.
Walter Roberson
el 23 de Sept. de 2020
If you were to take an object of known weight and move it around the sensor, then would the intensity profile remain consistent ?
If you were to measure one penny, and then were to measure two pennies together (that are as close as you can feasibly get to each other, such as two new pennies), then would the total measured load double but the individual profiles would stay the same?
Himanshu Verma
el 24 de Sept. de 2020
Walter Roberson
el 24 de Sept. de 2020
Yup, I would definitely recommend calibration with known forces. And area of an object such as a penny should be easy enough to calculate especially as it is already known https://www.bluebulbprojects.com/measureofthings/results.php?p=1&comp=area&unit=in2&amt=0.442&sort=pr.
Respuestas (0)
Categorías
Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!