-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea0be18
commit 818b668
Showing
6 changed files
with
86 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ add_message_files( | |
FILES | ||
Detection.msg | ||
DetectionArray.msg | ||
SegmentedImages.msg | ||
) | ||
|
||
generate_messages( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
std_msgs/Header header | ||
sensor_msgs/Image[] images |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import numpy as np | ||
import matplotlib.pyplot as plt | ||
import os | ||
|
||
# Expand the user directory | ||
hue_file_path = os.path.expanduser('~/hoc_data/hoc_hue_detection_1.npy') | ||
sat_file_path = os.path.expanduser('~/hoc_data/hoc_sat_detection_1.npy') | ||
|
||
# Load the HoC arrays from the saved files | ||
hoc_hue = np.load(hue_file_path) | ||
hoc_sat = np.load(sat_file_path) | ||
|
||
# Plot the Hue and Saturation HoC arrays | ||
plt.figure(figsize=(10, 6)) | ||
plt.plot(hoc_hue, label='Hue') | ||
plt.plot(hoc_sat, label='Saturation') | ||
plt.title('Histogram of Colors (HoC)') | ||
plt.xlabel('Bins') | ||
plt.ylabel('Frequency') | ||
plt.legend() | ||
plt.show() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters