Closed
Conversation
contains the scripts for the functionsto automatically segment images by color. There are two scripts: color_cluster_train (in the learn subpackage) which trains the model that does the segmentation and color_cluster_segmentation which does the actual segmenting.
Member
|
Hi @SethPolydore, I suggest refactoring the line causing the error in the spmask = pcv.color_clustering_segmentation(img=img, project_name=os.path.join(TEST_DATA, "temp_testing_multi"))
|
Codecov Report
@@ Coverage Diff @@
## master #592 +/- ##
===========================================
- Coverage 100.00% 99.64% -0.36%
===========================================
Files 142 144 +2
Lines 6482 6790 +308
===========================================
+ Hits 6482 6766 +284
- Misses 0 24 +24
Flags with carried forward coverage won't be shown. Click here to find out more.
|
add internal documentation, remove unused import statements
Contributor
|
Hmm I added another two tests to try to cover L53 in |
--------------Changes---------------- This is the update of the Color Clustering Train and the Color Clustering Segmentation functions. The functions can now use both gmm and Mini-Batch-Kmeans to segment images into different groups based on color. I changed the names of the function from "gmm" in the Learn subpackage and "gmm_segmentation" back to "Color_Clustering_Train" and "Color_Clustering_Segmentation." Color_Clustering_train can now output sample pixel values for each binary mask. Color_Clustering_Segmentation can now use inputs of sample pixels in order to get only certain binary masks. In both functions, using removing "gray" pixels is no longer automatic. It's also far faster than before. Type of update: New feature or feature enhancement
Fixed to remove unneeded python script.
…ter/plantcv into Add-Color-Clustering
Updated test and formatted scripts to PEP8 standards.
Contributor
|
Archiving |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
contains the scripts for the functionsto automatically segment images by color. There are two scripts: color_cluster_train (in the learn subpackage) which trains the model that does the segmentation and color_cluster_segmentation which does the actual segmenting.
Purpose
Adds new functionalities.