-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use node-java-bridge to new dcm2jpg instance will cause OOM - Create custom dcm2jpg wrapper(java) to execute dcm2jpg - `Dcm2JpgExecutor` would new `Dcm2Jpg`, set options, and convert to image file
- Loading branch information
1 parent
215072c
commit fcdaedc
Showing
28 changed files
with
1,075 additions
and
174 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
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
This file was deleted.
Oops, something went wrong.
Binary file not shown.
66 changes: 66 additions & 0 deletions
66
models/DICOM/dcm4che/wrapper/org/github/chinlinlee/dcm2jpg/Dcm2Jpg$ReadImage.d.ts
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,66 @@ | ||
import { JavaClass, InterfaceProxyOptions, JavaInterfaceProxy } from "java-bridge"; | ||
import { BufferedImage as java_awt_image_BufferedImage } from "./../../../../java/awt/image/BufferedImage"; | ||
import { File as java_io_File } from "./../../../../java/io/File"; | ||
/** | ||
* This class just defines types, you should import {@link Dcm2Jpg$ReadImage} instead of this. | ||
* This was generated by java-bridge. | ||
* You should probably not edit this. | ||
*/ | ||
export declare class Dcm2Jpg$ReadImageClass extends JavaClass { | ||
/** | ||
* @param var0 original type: 'java.io.File' | ||
* @return original return type: 'java.awt.image.BufferedImage' | ||
*/ | ||
apply(var0: java_io_File | null): Promise<java_awt_image_BufferedImage | null>; | ||
/** | ||
* @param var0 original type: 'java.io.File' | ||
* @return original return type: 'java.awt.image.BufferedImage' | ||
*/ | ||
applySync(var0: java_io_File | null): java_awt_image_BufferedImage | null; | ||
} | ||
/** | ||
* This interface just defines types for creating proxies, | ||
* you should use {@link createDcm2Jpg$ReadImageProxy} for actually creating the proxies. | ||
* | ||
* Optional methods in here may still be required by java. | ||
* This is caused by typescript not allowing to have both optional and | ||
* non-optional signatures for the same interface member. | ||
* | ||
* This was generated by java-bridge. | ||
* You should probably not edit this. | ||
*/ | ||
export interface Dcm2Jpg$ReadImageInterface { | ||
/** | ||
* @param var0 original type: 'java.io.File' | ||
* @return original return type: 'java.awt.image.BufferedImage' | ||
*/ | ||
apply(var0: java_io_File | null): java_awt_image_BufferedImage | null; | ||
} | ||
/** | ||
* Create a proxy for the {@link Dcm2Jpg$ReadImage} interface. | ||
* All required methods in {@link Dcm2Jpg$ReadImageInterface} must be implemented. | ||
* | ||
* @param methods the methods to implement | ||
* @param opts the proxy options | ||
* @return the proxy | ||
*/ | ||
export declare function createDcm2Jpg$ReadImageProxy(methods: Dcm2Jpg$ReadImageInterface, opts?: InterfaceProxyOptions): JavaInterfaceProxy<Dcm2Jpg$ReadImageInterface>; | ||
declare const Dcm2Jpg$ReadImage_base: typeof Dcm2Jpg$ReadImageClass; | ||
/** | ||
* Class org.github.chinlinlee.dcm2jpg.Dcm2Jpg$ReadImage. | ||
* | ||
* This actually imports the java class for further use. | ||
* The class {@link Dcm2Jpg$ReadImageClass} only defines types, this is the class you should actually import. | ||
* Please note that this statement imports the underlying java class at runtime, which may take a while. | ||
* This was generated by java-bridge. | ||
* You should probably not edit this. | ||
*/ | ||
export declare class Dcm2Jpg$ReadImage extends Dcm2Jpg$ReadImage_base { | ||
/** | ||
* Private constructor to prevent instantiation | ||
* as this is either an abstract class or an interface | ||
*/ | ||
private constructor(); | ||
} | ||
export default Dcm2Jpg$ReadImage; | ||
//# sourceMappingURL=Dcm2Jpg$ReadImage.d.ts.map |
1 change: 1 addition & 0 deletions
1
models/DICOM/dcm4che/wrapper/org/github/chinlinlee/dcm2jpg/Dcm2Jpg$ReadImage.d.ts.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.