Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Isis Developer Reference
ShadowCamUtilities.h
Go to the documentation of this file.
1#ifndef ShadowCamUtilities_h
2#define ShadowCamUtilities_h
8
9/* SPDX-License-Identifier: CC0-1.0 */
10
11#include <cstddef>
12#include <cstdint>
13#include <string>
14#include <vector>
15
16#include <QString>
17
18#include "PvlContainer.h"
19#include "PvlGroup.h"
20
21namespace Isis {
22namespace ShadowCam {
23
31 float Set8bitMaxMintoSpecialPixelsHIS4LIS4(std::uint16_t in);
32
40 std::uint16_t Set_LIS_HIS_SpecialPixelsTo_0_255(std::uint16_t in);
41
52 bool IsSpecialPixelSHC(double in);
53
63 std::size_t GetDataIndex(int channel, int channel_width, int pixel);
64
74 std::string GetVersionedFilename(const QString &filename);
75
88 QString GetFromLabels(const PvlContainer &pvlContainer, const QString &pvlKeyword);
89
103 int GetTdiFactor(const PvlGroup &instrument);
104
115 std::string ToLower(const std::string &str);
116
125 bool ContainsKeyword(const std::string &line, const std::vector<std::string> &keywords);
126
134 bool IsCalibrated(const FileName &file);
135}
136}
137
138#endif
Definition ShadowCamConstants.h:12
bool IsCalibrated(const FileName &file)
Check of image is a calibrated image.
Definition ShadowCamUtilities.cpp:112
bool ContainsKeyword(const std::string &line, const std::vector< std::string > &keywords)
Check if a line contains any keyword.
Definition ShadowCamUtilities.cpp:103
std::size_t GetDataIndex(int channel, int channel_width, int pixel)
Return data index based on channel, channel width, and pixel column.
Definition ShadowCamUtilities.cpp:51
bool IsSpecialPixelSHC(double pixel)
Checks if pixel is a special pixel.
Definition ShadowCamUtilities.cpp:47
int GetTdiFactor(const PvlGroup &instrumentGroup)
Get the TDI factor from TDI direction.
Definition ShadowCamUtilities.cpp:79
std::uint16_t Set_LIS_HIS_SpecialPixelsTo_0_255(std::uint16_t in)
Sets special pixels to 0 or 255.
Definition ShadowCamUtilities.cpp:34
std::string GetVersionedFilename(const QString &filename)
Gets the highest version of a filename and expands any ISIS variables in it, if present.
Definition ShadowCamUtilities.cpp:55
float Set8bitMaxMintoSpecialPixelsHIS4LIS4(std::uint16_t in)
Sets 8 bit max and min to special pixels.
Definition ShadowCamUtilities.cpp:22
std::string ToLower(const std::string &str)
Converts a string to lowercase.
Definition ShadowCamUtilities.cpp:99
QString GetFromLabels(const PvlContainer &pvlContainer, const QString &pvlKeyword)
Get the value from a keyword in the KPLO ShadowCam object labels.
Definition ShadowCamUtilities.cpp:71
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16