-
Notifications
You must be signed in to change notification settings - Fork 13
Added Image Input and Output for Column Splitting #1310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Just a few things:
|
|
The main use case for the change is the Interactive Classifier section of the E2E workflow: I wrote a little more in issue #1309 about why the split image is needed in the IC. Using the other layer inputs and outputs also works correctly, but this would just remove the overhead of having to convert to PNG RGBA before running the job. I've tested this locally with a couple RGB image inputs which have worked correctly, so it doesn't look like any changes need to made to Workflow Inputs: 019v Split Image Output: 044v Split Image Output: |
|
@homework36, is this ready to be merged then? Would you mind giving it a review and approving it if everything seems in order? Thank you! |
|
@DeannaLC Thank you for the updates! I can confirm that this is working fine for image 044v on my local machine as well. I was not able to test 019v because I didn't find the original image in the test files.
|
|
Sorry, here's the 019v image if you still need it: 019v.zip I just pushed a couple commits for the changed port name and a little comment about get_stacked_images working for both 3 and 4 channels - it's exactly how you explained that constant_values makes tuples that conform to the 3 or 4 channels. I did however realize there were issues with the All Layers output which caused the job to fail because of the difference in 3 vs 4 channels so I just excluded the image from it, but let me know if I should do it differently. There are no jobs for converting from RGB to RGBA currently. |
|
I tested 019v and it works as expected. I also tested what if the if key != 'RGB Image':
layers.append(img)
else:
if img.shape[2] == 3: # If no alpha channel
img = cv.cvtColor(img, cv.COLOR_BGR2BGRA) # Add alpha channel with default 255 (not transparent)
layers.append(img)This seems to me more of a design choice, so maybe @martha-thomae can take a look and decide? |
|
And everything else looks good to me. |
I would leave the |
homework36
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is all good now.



Resolves: (#1309)
Added an optional RGB PNG input and output to Column Splitting so the split image can be passed into the Interactive Classifier.