xp1632 / VPE_IP

0 stars 0 forks source link

【JIPipe】 【Update IJ package usecase】 #31

Open xp1632 opened 7 months ago

xp1632 commented 7 months ago
xp1632 commented 7 months ago

image

xp1632 commented 7 months ago

}


- By searching this method `getDependencyId`
- 
![image](https://github.com/Max-ChenFei/VPE_IP/assets/8528052/818b45ae-ebd7-4197-be2f-e4f28c51219e)
- we found this method is used in various situation:
- In `JIPipe.java`:
- We have the Valid Extension check and log error information  
            // Validate ID
            if (!isValidExtensionId(extension.getDependencyId())) {
                System.err.println("Invalid extension ID: " + extension.getDependencyId() + ". Please contact the developer of the extension " + extension);
                progressInfo.log("Invalid extension ID: " + extension.getDependencyId() + ". Please contact the developer of the extension " + extension);
            } else {
                if (!allJavaExtensionsByID.containsKey(extension.getDependencyId())) {
                    allJavaExtensionsByID.put(extension.getDependencyId(), extension);
                } else {
                    System.err.println("Duplicate extension ID: " + extension.getDependencyId() + ". Please contact the developer of the extension " + extension + " or check your ImageJ folder");
                    progressInfo.log("Duplicate extension ID: " + extension.getDependencyId() + ". Please contact the developer of the extension " + extension + " or check your ImageJ folder");
                }
            }

---

- This is a part in class `initialize`, and I think it's the dependency check of JIPipe when we first install it
xp1632 commented 7 months ago
xp1632 commented 7 months ago
xp1632 commented 7 months ago

How JIPipe supports ImageJ plugin:


image image

xp1632 commented 7 months ago

JIPipe: Import an image:

reference image image image

xp1632 commented 7 months ago

JIPipe: Gaussian filter

xp1632 commented 7 months ago

JIPipe threshold segmentation

image

xp1632 commented 7 months ago

After going through the tutorial of JIPipe and comparing with source code,

image

image

image

xp1632 commented 7 months ago

Conclusion: Just as we predicted, JIPipe only support the plugins that already fit our guideline, which is the ImageJ1 Marco and ImageJ2 Op that has standard input and output interface.