Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 27 14:03

    smistad on master

    Use std::map for data object me… (compare)

  • May 27 10:15

    smistad on master

    Fixed bug in getDirectoryList o… Fixed bug causes by rounding er… Fixed multi-threading bug in Pr… and 1 more (compare)

  • May 25 14:12

    smistad on master

    Refactor get renderers View Write and read spacing informat… Merge branch 'master' of github… (compare)

  • May 25 11:26

    smistad on master

    Update CI-mac.yml Do not run t… (compare)

  • May 25 11:00

    smistad on master

    Mark GVF 3D 32 bit tests as uns… (compare)

  • May 24 13:04

    smistad on master

    Make sure buffer thread is only… Fixed two bugs in getPatchData … (compare)

  • May 24 12:28
    andreped commented #158
  • May 24 12:28
    andreped commented #158
  • May 24 12:24
    andreped edited #158
  • May 24 12:19
    andreped opened #158
  • May 24 11:26

    smistad on master

    Signal finished fixes in Comput… Added lock guard to addRenderer… Refactored code for moving GL c… and 2 more (compare)

  • May 24 09:29

    smistad on master

    Display warning when TensorRT i… Added special variable $CURRENT… Small changes to destructor of … and 1 more (compare)

  • May 17 05:39
    OmarAlaaeldein starred smistad/FAST
  • May 15 09:36
    Airlamb starred smistad/FAST
  • May 11 14:04

    smistad on master

    Fixed issue with irregular leve… Merge remote-tracking branch 'o… (compare)

  • May 09 14:39
    MikeWazoWski123 edited #155
  • May 09 07:52

    smistad on master

    Update CI-mac.yml Removed code… (compare)

  • May 09 07:13

    smistad on master

    Update CI-mac.yml Added C++ an… (compare)

  • May 09 03:51
    ychyss starred smistad/FAST
  • May 01 17:21
    cpoptic starred smistad/FAST
Erwan Lecesne
@ErwanLecesne
I will make few more test to be sure, but i even didn't #include ImageImporter.hpp
vparasch
@vparasch
Hey everyone, so i have a list of images (both as arrays and fast image objects) that i want to process with the block matching algorithm. In order to do that i have to convert the list to a fast sequence object and then connect it to the block matching object, but the: sequence = fast.Sequence.create(list) gives the following error 'Wrong number or type of arguments for overloaded function 'Sequence_create''. Any ideas why? Or an alternative i could follow?
Erik Smistad
@smistad
Hi @vparasch. Sounds like a bug. Sequence.create should accept a list of fast images or fast tensors. You can try using fast.ImagesToSequence to get around the problem for now: https://fast.eriksmistad.no/classfast_1_1ImagesToSequence.html
Ignore the previous answer @vparasch . You don't need to use the sequence object for the block matching algorithm. Just send the images directly to it
Erik Smistad
@smistad
blockmatching.connect(image[i])
displacement = blockmatching.runAndGetOutputData()
blockmatching.connect(image[i+1]) and so on..
vparasch
@vparasch
Thanks Erik!
Erik Smistad
@smistad
Hi @vparasch Which version of FAST did you get the error with sequence = fast.Sequence.create(list)?

I am trying to reproduce your error with this script:

import fast
image = fast.Image.create(32, 32, fast.TYPE_FLOAT, 1)
list = [image, image, image]
sequence = fast.Sequence.create(list)

But it works fine here on version 4.3 on Ubuntu, with no error.

Nalin Das
@nalindas9

Hi, I am trying to stream images from the clarius ultrasound scanner to my laptop using the https://fast.eriksmistad.no/stream_from_clarius_ultrasound_scanner_8py-example.html example. I am unable establish connection to the scanner even after doing all of the following steps:

A Clarius ultrasound probe running with the research cast API enabled.
Unfreeze the ultrasond probe.
Your machine has to be connected to the Clarius probe wifi.
If on windows, disable the windows firewall, or add an exception.

Note: I have the following setup -

  1. Laptop running Windows 11 with Python 3.10.1 (used to run FAST and stream images)
  2. A tablet running the Clarius App that connects to the scanner
  3. The scanner itself

The computer is not able to connect to the direct wifi of the scanner probe while the tablet is able to do that.

So I tried to connect all the devices on the same local lan wifi network, but still getting the error.

Please see the attached error screenshot -

Would appreciate any help on this, thanks

Nalin Das
@nalindas9
Screenshot 2022-05-20 125611.png
Erik Smistad
@smistad
Hi @nalindas9, if you are sure the firewall is disabled, and you are on the same wifi as the probe, it might be that you have different versions of your Clarius App and the Clarius streaming code in FAST.
Clarius recently released version 9.1 of their app, but version 4.3.0 of FAST has 9.0.
The latest python wheels on github of FAST however cotains 9.1 of clarius, which you can download here: https://github.com/smistad/FAST/actions/runs/2050909193
So if your clarius app is updated to 9.1, you should install these newer python wheels
Nalin Das
@nalindas9

Hi @smistad, thanks for your response. I tried using the python wheel as well as the Windows installer from the link provided. Looks like both the wheel and windows installer are still FAST version 4.3.0.

My current code looks like this -

import fast

def main():
    importer = fast.ImageFileImporter\
    .create(fast.Config.getDocumentationPath() + '/images/FAST_logo_square.png')

    streamer = fast.ClariusStreamer.create()
    print('Streaming...')
    print('Streamer: {}'.format(streamer))
    renderer2 = fast.ImageRenderer.create().connect(streamer)
    print('renderer2: {}'.format(renderer2))
    renderer = fast.ImageRenderer.create()\
        .connect(importer)

    fast.SimpleWindow2D.create()\
        .connect(renderer2)\
        .run()

Please find the attached screenshots for more details.

pyfast2.png
issue2.png
Nalin Das
@nalindas9
20220521_103438.jpg
Erik Smistad
@smistad
@nalindas9 you have to write pip install --force-reinstall pyFAST-.....whl to install the wheel over the other
Nalin Das
@nalindas9

@smistad I executed the above command as so -

pip install --force-reinstall .\pyFAST-4.3.0-cp36-abi3-win_amd64.whl

However still getting the same error message.
Any solution for this?

ddd.png
Erik Smistad
@smistad
Hmm. Which port does the clarius app say it is streaming on?
The IP and port should be displayed above the ultrasound image
Nalin Das
@nalindas9
20220521_113412.jpg
IP - 172.16.101.195, Casting Port - 5828
Erik Smistad
@smistad
If it is streaming on another port than 5858 you can set that in: streamer = fast.ClariusStreamer.create(port=X)
Nalin Das
@nalindas9
Okay let me try that thanks
Tried that still getting same error message.
streamer = fast.ClariusStreamer.create(port=5828)
My laptop tablet and scanner are connected to the same wifi
But its not the scanners direct wifi
Connected via wireless LAN
Erik Smistad
@smistad
Ok, what is the scanners up address then?
Ah, the IP is different than standard
Then set the IP in the create method, fast.ClariusStreamer.create(IP='172.16.101.195', port=X)
1 reply
Nalin Das
@nalindas9
I am able to ping the cast IP address as so -
(venv) PS C:\Users\nalin\Downloads\clarius\FAST> ping 172.16.101.195

Pinging 172.16.101.195 with 32 bytes of data:
Reply from 172.16.101.195: bytes=32 time=159ms TTL=64
Reply from 172.16.101.195: bytes=32 time=3ms TTL=64
Reply from 172.16.101.195: bytes=32 time=69ms TTL=64
Reply from 172.16.101.195: bytes=32 time=3ms TTL=64

Ping statistics for 172.16.101.195:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 3ms, Maximum = 159ms, Average = 58ms
Erik Smistad
@smistad
Like this: fast.ClariusStreamer.create(ipAddress='172.16.101.195', port=5858)
Nalin Das
@nalindas9
Tried that, now getting a new message -
     - Powered by -     
   _______   __________   
  / __/ _ | / __/_  __/   https://fast.eriksmistad.no
 / _// __ |_\ \  / /               v4.3.0
/_/ /_/ |_/___/ /_/       

Streaming...
Streamer: <fast.fast.ClariusStreamer; proxy of <Swig Object of type 'std::shared_ptr< fast::ClariusStreamer > *' at 0x0000013E5EF9FD80> >
renderer2: <fast.fast.ImageRenderer; proxy of <Swig Object of type 'std::shared_ptr< fast::ImageRenderer > *' at 0x0000013E5EF9F780> >
WARNING: QApplication was not created in the main() thread.
ERROR [7336] connect failure: Exception ocurred (Error connecting to TCP socket: No connection could be made because the target machine actively refused it)
Nalin Das
@nalindas9
Any solution for this?
Erik Smistad
@smistad
Ok, one step closer...
Maybe this error is due to this bug which I don't think clarius has fixed yet: clariusdev/cast#26
In settings, set cast to "anyone" instead of "research (5858)". Now, you should the get a random port number instead when connecting to the scanner. Set that port number in the create method and try again
Nalin Das
@nalindas9
Yes let me try that thanks for the update
Nalin Das
@nalindas9
It worked
Thanks for the help :)
Able to livestream now
Erik Smistad
@smistad
👍
Erik Smistad
@smistad
You could let clarius know that their port bug is still not fixed: clariusdev/cast#26
Nalin Das
@nalindas9
Sure will let them know