Open spam79 opened 1 month ago
@niks2060 Do you know what might be the issue here?
Hi - thank you for your response. Using below code, we are able to load nii image and view. Now our requirement is to enable the users to perform segmentation similar to ITK-SNAP desktop tool. Does papaya package support this segmentation ? If so, can you please enable it on ReactJS code?
https://github.com/arindas/papaya-react
On Mon, Jun 10, 2024 at 1:42 PM RII-Mango @.***> wrote:
@niks2060 https://github.com/niks2060 Do you know what might be the issue here?
— Reply to this email directly, view it on GitHub https://github.com/rii-mango/Papaya/issues/237#issuecomment-2159248391, or unsubscribe https://github.com/notifications/unsubscribe-auth/BI7KEEDSTDWTKAHKFUYMU3TZGYFVBAVCNFSM6AAAAABI3TDMN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJZGI2DQMZZGE . You are receiving this because you authored the thread.Message ID: @.***>
-- Thanks & Regards, Sreedhar Pamidighantam 4410 Hacienda Dr, Apt# 206, Pleasanton, CA - 94588 Cell# 925-520-5942
@spam79 I am working on migrating this to React just need to wait for all other libraries to be ported to react or typescript which papaya use.
When we use Papaya.js package, using below code in ReactJS getting below error. Request the expert team to please help with a solution.
Error during Execution of below code in Chrome browser:
$/ papaya-mango-viewer undefined error
Code:
import logo from './logo.svg'; import './App.css'; const papaya = require('./papaya-viewer');
var params = []; params["worldSpace"] = true; params["images"] = ["data/myBaseImage.nii.gz", "data/myOverlayImage.nii.gz"]; params["surfaces"] = ["data/mySurface.surf.gii"]; params["myOverlayImage.nii.gz"] = {"min": 4, "max": 10}; console.log(papaya)
function App() { return (
Edit
Learn Reactsrc/App.js
and save to reload.); }
export default App;