1. A power converter comprising:
a pair of main circuit switching elements connected to a direct-current voltage source and supplying power to an inductive load by ONOFF drive, at least one main circuit switching element of the pair being configured of an FET;
a diode connected in antiparallel with each of the pair of main circuit switching elements;
a reverse voltage application means that applies a reverse voltage lower than a voltage of the direct-current power source to the diode connected in antiparallel with the FET;
a first PWM basic-signal generating means that generates a first PWM basic signal for ONOFF-driving the pair of main circuit switching elements;
a second PWM basic-signal generating means that generates a second PWM basic signal having a phase lead with respect to the first PWM basic signal; and
a one-shot pulse generating means that generates a reverse voltage application signal based on the second PWM basic signal, the reverse voltage application signal being for driving the reverse voltage application means for a predetermined period.
2. A power converter comprising:
a pair of main circuit switching elements connected to a direct-current voltage source and supplying power to an inductive load by ONOFF drive, at least one main circuit switching element of the pair being configured of an FET;
a diode connected in antiparallel with each of the pair of main circuit switching elements;
a reverse voltage application means that applies a reverse voltage lower than a voltage of the direct-current power source to the diode connected in antiparallel with the FET;
a switching signal generating means that generates switching signals of the pair of main circuit switching elements based on a PWM basic signal in order to ONOFF drive the pair of main circuit switching elements;
a one-shot pulse generating means that generates a reverse voltage application signal for operating the reverse voltage application means at a predetermined timing; and
a signal correction means that receives a reverse voltage application signal, and a switching signal concerning the FET, to which a reverse voltage is applied based on the reverse voltage application signal, and that outputs the inputted reverse voltage application signal as it is when the switching signal is OFF, and turns off the inputted reverse voltage application signal when the switching signal is ON.
3. The power converter according to claim 1, characterized in that wherein a plurality of the PWM basic-signal generating means and the one-shot pulse generating means are provided inside a microcomputer.
4. The power converter according to claim 1, comprising:
a current detector that detects a current flowing into the inductive load;
a diagnosis means that diagnoses whether or not a current detected by the current detector is an overcurrent; and
a determination and control means that determines, based on a result diagnosed by the diagnosis means, whether or not there is an abnormality in the pair of main circuit switching elements and in the reverse voltage application means, while controlling whether or not to allow the output of ONOFF switching signals of the pair of switching elements and the reverse voltage application signal.
5. The power converter according to claim 2, comprising:
a current detector that detects a current flowing into the inductive load;
a diagnosis means that diagnoses whether or not a current detected by the current detector is an overcurrent; and
a determination and control means that determines, based on a result diagnosed by the diagnosis means, whether or not there is an abnormality in the pair of main circuit switching elements and in the reverse voltage application means, while controlling whether or not to allow the output of ONOFF switching signals of the pair of switching elements and the reverse voltage application signal.
6. The power converter according to claim 3, comprising:
a current detector that detects a current flowing into the inductive load;
a diagnosis means that diagnoses whether or not a current detected by the current detector is an overcurrent; and
a determination and control means that determines, based on a result diagnosed by the diagnosis means, whether or not there is an abnormality in the pair of main circuit switching elements and in the reverse voltage application means, while controlling whether or not to allow the output of ONOFF switching signals of the pair of switching elements and the reverse voltage application signal.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. A method for making up a skin tone of a human body in an image, wherein a device applied to the method comprises a first receiving unit, a second receiving unit, a filter module, a skin tone probability unit, a first mixing unit, a saturation adjustment unit, and a second mixing unit, the method comprising:
the first receiving unit receiving Y values of the image and the second receiving unit receiving Cb values and Cr values of the image;
the filter module generating two different luminance values corresponding to each pixel of the image according to the Y values of the image;
the skin tone probability unit generating a probability value of each pixel of the image corresponding to a skin tone of the human body according to the Cb values and the Cr values of the image;
the first mixing unit generating a skin tone luminance adjustment value corresponding to each pixel of the image according to two different luminance values corresponding to each pixel of the image and a probability value of each pixel of the image corresponding to the skin tone of the human body;
the saturation adjustment unit generating a Cb adjustment value and a Cr adjustment value corresponding to each pixel of the image according to the Cb values and the Cr values of the image, respectively; and
the second mixing unit generating a make-up human body skin tone image according to a skin tone luminance adjustment value corresponding to each pixel of the image, a Cb adjustment value corresponding to each pixel of the image, and a Cr adjustment value corresponding to each pixel of the image.
2. The method of claim 1, wherein the filter module generating two different luminance values corresponding to each pixel of the image according to the Y values of the image comprises:
a first low pass filter of the filter module generating a first luminance value corresponding to each pixel of the image according to the Y values of the image, and a second low pass filter of the filter module generating a second luminance value corresponding to each pixel of the image according to the Y values of the image, wherein a size of a first kernel corresponding to the first low pass filter is less than a size of a second kernel corresponding to the second low pass filter.
3. The method of claim 2, wherein the first mixing unit generates a skin tone luminance adjustment value corresponding to each pixel of the image according to a following equation, and a first luminance value, a second luminance value, and a probability value corresponding to the skin tone of the human body corresponding to each pixel of the image:
I\u2032y(p)=(1\u2212\u03b1)\xb7IY\u2014F (p)+\u03b1\xb7IY\u2014S(p)\xb7Lgain;
wherein:
I\u2032Y(p) is a skin tone luminance adjustment value corresponding to each pixel p of the image;
IY\u2014F(p) is a first luminance value corresponding to each pixel p of the image;
IY\u2014S(p) is a second luminance value corresponding to each pixel p of the image;
\u03b1 is a probability value corresponding to the skin tone of the human body corresponding to each pixel p of the image; and
Lgain is a luminance gain corresponding to each pixel p of the image.
4. The method of claim 1, wherein the skin tone probability unit generating a probability value of each pixel of the image corresponding to the skin tone of the human body according to the Cb values and the Cr values of the image comprises:
the skin tone probability unit generating a probability value of each pixel of the image corresponding to the skin tone of the human body according to a two-dimensional Trapezoid model, and the Cb values and the Cr values of the image.
5. A method for adjusting a skin tone luminance of a human body in an image, wherein a device applied to the method comprises a first receiving unit, a second receiving unit, a filter module, a skin tone probability unit, and a first mixing unit, the method comprising:
the first receiving unit receiving Y values of the image and the second receiving unit receiving Cb values and Cr values of the image ;
the filter module generating two different luminance values corresponding to each pixel of the image according to the Y values of the image;
the skin tone probability unit generating a probability value of each pixel of the image corresponding to a skin tone of the human body according to the Cb values and the Cr values of the image; and
the first mixing unit generating a skin tone luminance adjustment value corresponding to each pixel of the image according to two different luminance values corresponding to each pixel of the image and a probability value of each pixel of the image corresponding to the skin tone of the human body.
6. The method of claim 5, wherein the filter module generating two different luminance values corresponding to each pixel of the image according to the Y values of the image comprises:
a first low pass filter of the filter module generating a first luminance value corresponding to each pixel of the image according to the Y values of the image, and a second low pass filter of the filter module generating a second luminance value corresponding to each pixel of the image according to the Y values of the image, wherein a size of a first kernel corresponding to the first low pass filter is less than a size of a second kernel corresponding to the second low pass filter.
7. The method of claim 6, wherein the first mixing unit generates a skin tone luminance adjustment value corresponding to each pixel of the image according to a following equation, and a first luminance value, a second luminance value, and a probability value corresponding to the skin tone of the human body corresponding to each pixel of the image:
I\u2032Y(p)=(1\u2212\u03b1)\xb7IY\u2014F(p)+\u03b1\xb7IY\u2014S(p)\xb7Lgain;
wherein:
I\u2032Y(p) is a skin tone luminance adjustment value corresponding to each pixel p of the image;
IY\u2014F (p) is a first luminance value corresponding to each pixel p of the image;
IY\u2014S(p) is a second luminance value corresponding to each pixel p of the image;
\u03b1 is a probability value corresponding to the skin tone of the human body corresponding to each pixel p of the image; and
Lgain is a luminance gain corresponding to each pixel p of the image.
8. The method of claim 5, wherein the skin tone probability unit generating a probability value of each pixel of the image corresponding to the skin tone of the human body according to the Cb values and the Cr values of the image comprises:
the skin tone probability unit generating a probability value of each pixel of the image corresponding to the skin tone of the human body according to a two-dimensional Trapezoid model, and the Cb values and the Cr values of the image.
9. A device for making up a skin tone of a human body in an image the device comprising:
a first receiving unit receiving Y values of the image;
a second receiving unit receiving Cb values and Cr values of the image;
a filter module coupled to the first receiving unit for generating two different luminance values corresponding to each pixel of the image according to the Y values of the image;
a skin tone probability unit coupled to the second receiving unit for generating a probability value of each pixel of the image corresponding to a skin tone of the human body according to the Cb values and the Cr values of the image;
a first mixing unit coupled to the filter module and the skin tone probability unit for generating a skin tone luminance adjustment value corresponding to each pixel of the image according to two different luminance values corresponding to each pixel of the image and a probability value of each pixel of the image corresponding to the skin tone of the human body;
a saturation adjustment unit coupled to the second receiving unit for generating a Cb adjustment value and a Cr adjustment value corresponding to each pixel of the image according to the Cb values and the Cr values of the image, respectively; and
a second mixing unit coupled to the first mixing unit and the saturation adjustment unit for generating a make-up human body skin tone image according to a skin tone luminance adjustment value corresponding to each pixel of the image, a Cb adjustment value corresponding to each pixel of the image, and a Cr adjustment value corresponding to each pixel of the image.
10. The device of claim 9, wherein the filter module comprises a first low pass filter and a second low pass filter, wherein the first low pass filter generates a first luminance value corresponding to each pixel of the image according to the Y values of the image, the second low pass filter generates a second luminance value corresponding to each pixel of the image according to the Y values of the image, and a size of a first kernel corresponding to the first low pass filter is less than a size of a second kernel corresponding to the second low pass filter.
11. The device of claim 10, wherein the first mixing unit generates a skin tone luminance adjustment value corresponding to each pixel of the image according to a following equation, and a first luminance value, a second luminance value, and a probability value corresponding to the skin tone of the human body corresponding to each pixel of the image:
I\u2032Y(p)=(1\u2212\u03b1)\xb7IY\u2014F(p)+\u03b1\xb7IY\u2014S(p)\xb7Lgain;
wherein:
I\u2032Y(p) is a skin tone luminance adjustment value corresponding to each pixel p of the image;
IY\u2014F(p) is a first luminance value corresponding to each pixel p of the image;
IY\u2014S(p) is a second luminance value corresponding to each pixel p of the image;
\u03b1 is a probability value corresponding to the skin tone of the human body corresponding to each pixel p of the image; and
Lgain is a luminance gain corresponding to each pixel p of the image.
12. The device of claim 9, wherein the skin tone probability unit generates a probability value of each pixel of the image corresponding to the skin tone of the human body according to a two-dimensional Trapezoid model, and the Cb values and the Cr values of the image.
13. A device for adjusting a skin tone luminance of a human body in an image, the device comprising:
a first receiving unit receiving Y values of the image;
a second receiving unit receiving Cb values and Cr values of the image;
a filter module coupled to the first receiving unit for generating two different luminance values corresponding to each pixel of the image according to the Y values of the image;
a skin tone probability unit coupled to the second receiving unit for generating a probability value of each pixel of the image corresponding to a skin tone of the human body according to the Cb values and the Cr values of the image; and
a first mixing unit coupled to the filter module and the skin tone probability unit for generating a skin tone luminance adjustment value corresponding to each pixel of the image according to two different luminance values corresponding to each pixel of the image and a probability value of each pixel of the image corresponding to the skin tone of the human body.
14. The device of claim 13, wherein the filter module comprises a first low pass filter and a second low pass filter, wherein the first low pass filter generates a first luminance value corresponding to each pixel of the image according to the Y values of the image, the second low pass filter generates a second luminance value corresponding to each pixel of the image according to the Y values of the image, and a size of a first kernel corresponding to the first low pass filter is less than a size of a second kernel corresponding to the second low pass filter.
15. The device of claim 14, wherein the first mixing unit generates a skin tone luminance adjustment value corresponding to each pixel of the image according to a following equation, and a first luminance value, a second luminance value, and a probability value corresponding to the skin tone of the human body corresponding to each pixel of the image:
I\u2032Y(p)=(1\u2212\u03b1)\xb7IY\u2014F(p)+\u03b1\xb7IY\u2014S(p)\xb7Lgain;
wherein:
I\u2032Y(p) is a skin tone luminance adjustment value corresponding to each pixel p of the image;
IY\u2014F(p) is a first luminance value corresponding to each pixel p of the image;
IY\u2266S(p) is a second luminance value corresponding to each pixel p of the image;
\u03b1 is a probability value corresponding to the skin tone of the human body corresponding to each pixel p of the image; and
Lgain is a luminance gain corresponding to each pixel p of the image.
16. The device of claim 13, wherein the skin tone probability unit generates a probability value of each pixel of the image corresponding to the skin tone of the human body according to a two-dimensional Trapezoid model, and the Cb values and the Cr values of the image.
17. A method for making up a skin tone of a human body in an image, wherein a device applied to the method comprises a first receiving unit, a second receiving unit, a filter module, a skin tone probability unit, a first mixing unit, a saturation adjustment unit, and a second mixing unit, the method comprising:
the first receiving unit receiving Y values of the image and the second receiving unit receiving Cb values and Cr values of the image;
the filter module generating two different luminance values corresponding to each pixel of the image according to the Y values of the image;
the skin tone probability unit generating a probability value of each pixel of the image corresponding to a skin tone of the human body according to the Cb values, the Cr values of the image, and a Gaussian model corresponding to the skin tone of the human body;
the first mixing unit generating a skin tone luminance adjustment value corresponding to each pixel of the image according to two different luminance values corresponding to each pixel of the image and a probability value of each pixel of the image corresponding to the skin tone of the human body;
the saturation adjustment unit generating a Cb adjustment value and a Cr adjustment value corresponding to each pixel of the image according to the Cb values and the Cr values of the image, respectively; and
the second mixing unit generating a make-up human body skin tone image according to a skin tone luminance adjustment value corresponding to each pixel of the image, a Cb adjustment value corresponding to each pixel of the image, and a Cr adjustment value corresponding to each pixel of the image.
18. A method for adjusting a skin tone luminance of a human body in an image, wherein a device applied to the method comprises a first receiving unit, a second receiving unit, a filter module, a skin tone probability unit, and a first mixing unit, the method comprising:
the first receiving unit receiving Y values of the image and the second receiving unit receiving Cb values and Cr values of the image;
the filter module generating two different luminance values corresponding to each pixel of the image according to the Y values of the image;
the skin tone probability unit generating a probability value of each pixel of the image corresponding to a skin tone of the human body according to the Cb values, the Cr values of the image, and a Gaussian model corresponding to a skin tone of the human body; and
the first mixing unit generating a skin tone luminance adjustment value corresponding to each pixel of the image according to two different luminance values corresponding to each pixel of the image and a probability value of each pixel of the image corresponding to the skin tone of the human body.
19. A device for making up a skin tone of a human body in an image, the device comprising:
a first receiving unit receiving Y values of the image;
a second receiving unit receiving Cb values and Cr values of the image;
a filter module coupled to the first receiving unit for generating two different luminance values corresponding to each pixel of the image according to the Y values of the image;
a skin tone probability unit coupled to the second receiving unit for generating a probability value of each pixel of the image corresponding to a skin tone of the human body according to the Cb values, the Cr values of the image, and a Gaussian model corresponding to the skin tone of the human body;
a first mixing unit coupled to the filter module and the skin tone probability unit for generating a skin tone luminance adjustment value corresponding to each pixel of the image according to two different luminance values corresponding to each pixel of the image and a probability value of each pixel of the image corresponding to the skin tone of the human body;
a saturation adjustment unit coupled to the second receiving unit for generating a Cb adjustment value and a Cr adjustment value corresponding to each pixel of the image according to the Cb values and the Cr values of the image, respectively; and
a second mixing unit coupled to the first mixing unit and the saturation adjustment unit for generating a make-up human body skin tone image according to a skin tone luminance adjustment value corresponding to each pixel of the image, a Cb adjustment value corresponding to each pixel of the image, and a Cr adjustment value corresponding to each pixel of the image.
20. A device for adjusting a skin tone luminance of a human body in an image, the device comprising:
a first receiving unit receiving Y values of the image;
a second receiving unit receiving Cb values and Cr values of the image;
a filter module coupled to the first receiving unit for generating two different luminance values corresponding to each pixel of the image according to the Y values of the image;
a skin tone probability unit coupled to the second receiving unit for generating a probability value of each pixel of the image corresponding to a skin tone of the human body according to the Cb values, the Cr values of the image, and a Gaussian model corresponding to the skin tone of the human body; and
a first mixing unit coupled to the filter module and the skin tone probability unit for generating a skin tone luminance adjustment value corresponding to each pixel of the image according to two different luminance values corresponding to each pixel of the image and a probability value of each pixel of the image corresponding to the skin tone of the human body.