mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-02-12 00:18:41 +00:00
fix rotation
This commit is contained in:
parent
40efcb8a66
commit
cd71fb74b1
|
|
@ -46,7 +46,7 @@ namespace Image {
|
||||||
std::vector<float> angles;
|
std::vector<float> angles;
|
||||||
for (int i = 0; i < tmpAngles.size(); ++i) {
|
for (int i = 0; i < tmpAngles.size(); ++i) {
|
||||||
if (imageOrientation > 0) {
|
if (imageOrientation > 0) {
|
||||||
if (oms_deg2rad(90 - maxDegree) < oms_abs(tmpAngles[i]) < oms_deg2rad(90 + maxDegree)) {
|
if (oms_deg2rad(90 - maxDegree) < oms_abs(tmpAngles[i]) && oms_abs(tmpAngles[i]) < oms_deg2rad(90 + maxDegree)) {
|
||||||
angles.push_back(tmpAngles[i]);
|
angles.push_back(tmpAngles[i]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user