Registration, Merge and export of 8bit brightfield channel images (.tif) #83
Replies: 2 comments 2 replies
-
|
Hi @andreevg04, Best, |
Beta Was this translation helpful? Give feedback.
-
|
Hi @andreevg04, Unfortunately, I don't have much experience using ImageJ, so I'm not able to say why the stain deconvolution isn't working as expected. When I needed to do stain deconvolution, I used valis to warp each slide, and then sliced the pyvips.Image into tiles that I could then convert to numpy arrays and perform stain deconvolution on. You can then convert those numpy arrays to pyvips.Images, and stitch them tiles back together to create the full resolution deconvolved image. You would repeat for each of the RGB cores, and merge all of them together to create your pseudo IF image, which you could then save as an ome.tiff. It's a bit of a process to put together, but potentially worth it, especially if you plan run the pipeline on a large number of samples. It should very much be possible to create a script that you could use to align individual cores. When I have to do something like that, I find it most useful to set up the script to take command line arguments via As long as the H&E image is also a TMA core, it should be also possible to align them along with the rest of other RGB cores. You would just either need to put it in the same folder as the other images, or put all of the image file names you want to align in a list, and then pass that list to the I hope that answers your questions, but if not, or if you have any others, please don't hesitate to ask. Best, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear VALIS Community,
I am a programming newbie, but very interested in image analysis. I want to register serial stains on the same piece of tissue in a TMA. At first I segmented the cores and then used color deconvolution to separate the channels and getting a hematoxylin and a DAB channel. I tried using VALIS to register the Hematoxylin and the DAB channels by using this piece of code.
from valis import registration
slide_src_dir = "/path/to/slides"
results_dst_dir = "./slide_merging_example" # Registration results saved here
merged_slide_dst_f = "./slide_merging_example/merged_slides.ome.tiff" # Where to save merged slide
registrar = registration.Valis(slide_src_dir, results_dst_dir)
rigid_registrar, non_rigid_registrar, error_df = registrar.register()
the registration didnt work as it stopped before the Rigid Registration. I also used the simple example for registerring the images but it didnt work.
I have 12 core CPU and 15GB RAM.
Beta Was this translation helpful? Give feedback.
All reactions