CPC F21S 41/663 (2018.01) [B60Q 1/14 (2013.01); H05B 45/10 (2020.01)] | 20 Claims |
1. Method for managing image data in an automotive lighting device, the method comprising the steps of:
providing an image pattern comprising a plurality of pixels, wherein each pixel is characterized by a numeric value related to the luminous intensity of the pixel;
divide the image pattern in rows or columns of pixels, thus creating a plurality of row patterns;
choose a first pixel of one of the row patterns and calculating a first gradient value related to the relation between the numeric value of the first pixel and the numeric value of an adjacent pixel;
calculating, for each pixel, a corresponding gradient value; checking, for each pixel, if the difference between the corresponding gradient value and the first gradient fulfils one of a first or second condition;
repeating the former step until finding an end pixel where the difference between the corresponding gradient and the first gradient does not fulfil the first condition;
defining a linear segment between the first pixel and the end pixel; choosing a different first pixel and repeat the steps of calculating the first gradient value, calculating corresponding gradient values, checking the fulfilment of a first and second conditions, finding the end pixel and define a linear segment until defining segments for the whole row pattern;
compressing the data of the linear segments; and
sending the compressed data to a light module of the lighting device.
|